| Modifier and Type | Field and Description |
|---|---|
| public XSSimpleType | actualType
The declared type of the value. |
| public Object | actualValue
The actual value from a string value (QName, Boolean, etc.) An array of Objects if the type is a list. |
| public short | actualValueType
The type of the actual value. |
| public 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. |
| public XSSimpleType | memberType
If the type is a union type, then the member type which actually validated the string value. |
| public XSSimpleType[] | memberTypes
If 1. |
| public String | normalizedValue
The normalized value of a string value |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static short | Returns: The primitive type from which valueType was derived.A value type as defined in XSConstants. valueType)Returns the primitive type of the given type. |
| public void | |
| public Object | getActualValue()
Implements com. The actual value. |
| public short | getActualValueType()
Implements com. The actual value built-in datatype, e.g.
|
| public ShortList | getListValueTypes()
Implements com. In the case the actual value represents a list, i.e. the
|
| public XSSimpleTypeDefinition | getMemberTypeDefinition()
Implements com. If the declared simple type definition is a union, return the member type actually used to validate the value. |
| public XSObjectList | getMemberTypeDefinitions()
Implements com. If |
| public String | getNormalizedValue()
Implements com. The schema normalized value. |
| public XSSimpleTypeDefinition | getTypeDefinition()
Implements com. The declared simple type definition used to validate this value. |
| public static boolean | isComparable(ValidatedInfo info1, ValidatedInfo info2)
Returns true if the two ValidatedInfo objects can be compared in the same value space. |
| public void | |
| public String |
| actualType | back to summary |
|---|---|
| public XSSimpleType actualType The declared type of the value. | |
| actualValue | back to summary |
|---|---|
| public Object actualValue The actual value from a string value (QName, Boolean, etc.) An array of Objects if the type is a list. | |
| actualValueType | back to summary |
|---|---|
| public short actualValueType The type of the actual value. It's one of the _DT constants defined in XSConstants.java. The value is used to indicate the most specific built-in type. (i.e. short instead of decimal or integer). | |
| itemValueTypes | back to summary |
|---|---|
| public 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. For a normal list, the length of the array is 1; for list of unions, the length of the array is the same as the length of the list. | |
| memberType | back to summary |
|---|---|
| public XSSimpleType memberType If the type is a union type, then the member type which actually validated the string value. | |
| memberTypes | back to summary |
|---|---|
| public XSSimpleType[] memberTypes If 1. the type is a union type where one of the member types is a list, or if the type is a list; and 2. the item type of the list is a union type then an array of member types used to validate the values. | |
| normalizedValue | back to summary |
|---|---|
| public String normalizedValue The normalized value of a string value | |
| ValidatedInfo | back to summary |
|---|---|
| public ValidatedInfo() | |
| convertToPrimitiveKind | back to summary |
|---|---|
| private static short convertToPrimitiveKind(short valueType) Returns the primitive type of the given type.
| |
| copyFrom | back to summary |
|---|---|
| public void copyFrom(XSValue o) | |
| getActualValue | back to summary |
|---|---|
| public Object getActualValue() Implements com. Doc from com. The actual value. | |
| getActualValueType | back to summary |
|---|---|
| public short getActualValueType() Implements com. Doc from com. The actual value built-in datatype, e.g.
| |
| getListValueTypes | back to summary |
|---|---|
| public ShortList getListValueTypes() Implements com. Doc from com. In the case the actual value represents a list, i.e. the
<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.
If the actual value represents a list type definition whose item type is a union type definition, i.e. 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.
| |
| getMemberTypeDefinition | back to summary |
|---|---|
| public XSSimpleTypeDefinition getMemberTypeDefinition() Implements com. Doc from com. If the declared simple type definition is a union, return the member type actually used to validate the value. Otherwise null. | |
| getMemberTypeDefinitions | back to summary |
|---|---|
| public XSObjectList getMemberTypeDefinitions() Implements com. Doc from com. If | |
| getNormalizedValue | back to summary |
|---|---|
| public String getNormalizedValue() Implements com. Doc from com. The schema normalized value. | |
| getTypeDefinition | back to summary |
|---|---|
| public XSSimpleTypeDefinition getTypeDefinition() Implements com. Doc from com. The declared simple type definition used to validate this value. It can be a union type. | |
| isComparable | back to summary |
|---|---|
| public static boolean isComparable(ValidatedInfo info1, ValidatedInfo info2) Returns true if the two ValidatedInfo objects can be compared in the same value space. | |
| reset | back to summary |
|---|---|
| public void reset() reset the state of this object | |
| stringValue | back to summary |
|---|---|
| public String stringValue() Return a string representation of the value. If there is an actual value, use toString; otherwise, use the normalized value. | |