public class ValidatedInfo
extends java.lang.Object
implements org.apache.xerces.xs.XSValue
Modifier and Type | Field and Description |
---|---|
XSSimpleType |
actualType
The declared type of the value.
|
java.lang.Object |
actualValue
The actual value from a string value (QName, Boolean, etc.)
An array of Objects if the type is a list.
|
short |
actualValueType
The type of the actual value.
|
org.apache.xerces.xs.ShortList |
itemValueTypes
In the case the value is a list or a list of unions, this value
indicates the type(s) of the items in the list.
|
XSSimpleType |
memberType
If the type is a union type, then the member type which
actually validated the string value.
|
XSSimpleType[] |
memberTypes
If
1.
|
java.lang.String |
normalizedValue
The normalized value of a string value
|
Constructor and Description |
---|
ValidatedInfo() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(org.apache.xerces.xs.XSValue o) |
java.lang.Object |
getActualValue()
The actual value.
|
short |
getActualValueType()
The actual value built-in datatype, e.g.
|
org.apache.xerces.xs.ShortList |
getListValueTypes()
In the case the actual value represents a list, i.e.
|
org.apache.xerces.xs.XSSimpleTypeDefinition |
getMemberTypeDefinition()
If the declared simple type definition is a union, return the member
type actually used to validate the value.
|
org.apache.xerces.xs.XSObjectList |
getMemberTypeDefinitions()
If
getTypeDefinition() returns a list type whose item type
is a union type, then this method returns a list with the same length
as the value list, for simple types that actually validated
the corresponding item in the value. |
java.lang.String |
getNormalizedValue()
The schema normalized value.
|
org.apache.xerces.xs.XSSimpleTypeDefinition |
getTypeDefinition()
The declared simple type definition used to validate this value.
|
static boolean |
isComparable(ValidatedInfo info1,
ValidatedInfo info2)
Returns true if the two ValidatedInfo objects can be compared in the same
value space.
|
void |
reset()
reset the state of this object
|
java.lang.String |
stringValue()
Return a string representation of the value.
|
public java.lang.String normalizedValue
public java.lang.Object actualValue
public short actualValueType
public XSSimpleType actualType
public XSSimpleType memberType
public XSSimpleType[] memberTypes
public org.apache.xerces.xs.ShortList itemValueTypes
public void reset()
public java.lang.String stringValue()
public static boolean isComparable(ValidatedInfo info1, ValidatedInfo info2)
public java.lang.Object getActualValue()
org.apache.xerces.xs.XSValue
null
if the value is in error.getActualValue
in interface org.apache.xerces.xs.XSValue
public short getActualValueType()
org.apache.xerces.xs.XSValue
STRING_DT, SHORT_DT
. If the type definition of this
value is a list type definition, this method returns
LIST_DT
. If the type definition of this value is a list
type definition whose item type is a union type definition, this
method returns LISTOFUNION_DT
. To query the actual value
of the list or list of union type definitions use
itemValueTypes()
.getActualValueType
in interface org.apache.xerces.xs.XSValue
public org.apache.xerces.xs.ShortList getListValueTypes()
org.apache.xerces.xs.XSValue
actualNormalizedValueType
is LIST_DT
, the
returned array consists of one type kind which represents the itemType
. For example:
<simpleType name="listtype"> <list itemType="positiveInteger"/> </simpleType> <element name="list" type="listtype"/> ... <list>1 2 3</list>The
schemaNormalizedValue
value is "1 2 3", the
actualNormalizedValueType
value is LIST_DT
,
and the itemValueTypes
is an array of size 1 with the
value POSITIVEINTEGER_DT
.
LISTOFUNION_DT
,
for each actual value in the list the array contains the
corresponding memberType kind. For example:
<simpleType name='union_type' memberTypes="integer string"/> <simpleType name='listOfUnion'> <list itemType='union_type'/> </simpleType> <element name="list" type="listOfUnion"/> ... <list>1 2 foo</list>The
schemaNormalizedValue
value is "1 2 foo", the
actualNormalizedValueType
is LISTOFUNION_DT
, and the itemValueTypes
is an array of size 3 with the
following values: INTEGER_DT, INTEGER_DT, STRING_DT
.getListValueTypes
in interface org.apache.xerces.xs.XSValue
public org.apache.xerces.xs.XSObjectList getMemberTypeDefinitions()
org.apache.xerces.xs.XSValue
getTypeDefinition()
returns a list type whose item type
is a union type, then this method returns a list with the same length
as the value list, for simple types that actually validated
the corresponding item in the value.getMemberTypeDefinitions
in interface org.apache.xerces.xs.XSValue
public java.lang.String getNormalizedValue()
org.apache.xerces.xs.XSValue
getNormalizedValue
in interface org.apache.xerces.xs.XSValue
public org.apache.xerces.xs.XSSimpleTypeDefinition getTypeDefinition()
org.apache.xerces.xs.XSValue
getTypeDefinition
in interface org.apache.xerces.xs.XSValue
public org.apache.xerces.xs.XSSimpleTypeDefinition getMemberTypeDefinition()
org.apache.xerces.xs.XSValue
getMemberTypeDefinition
in interface org.apache.xerces.xs.XSValue
public void copyFrom(org.apache.xerces.xs.XSValue o)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.