public class ValidatedInfo
extends java.lang.Object
implements org.apache.xerces.xs.XSValue
| Modifier and Type | Field and Description | 
|---|---|
| XSSimpleType | actualTypeThe declared type of the value. | 
| java.lang.Object | actualValueThe actual value from a string value (QName, Boolean, etc.)
 An array of Objects if the type is a list. | 
| short | actualValueTypeThe type of the actual value. | 
| org.apache.xerces.xs.ShortList | itemValueTypesIn 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 | memberTypeIf the type is a union type, then the member type which
 actually validated the string value. | 
| XSSimpleType[] | memberTypesIf
 1. | 
| java.lang.String | normalizedValueThe 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.XSValuenull if the value is in error.getActualValue in interface org.apache.xerces.xs.XSValuepublic short getActualValueType()
org.apache.xerces.xs.XSValueSTRING_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.XSValuepublic org.apache.xerces.xs.ShortList getListValueTypes()
org.apache.xerces.xs.XSValueactualNormalizedValueType 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.XSValuepublic org.apache.xerces.xs.XSObjectList getMemberTypeDefinitions()
org.apache.xerces.xs.XSValuegetTypeDefinition() 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.XSValuepublic java.lang.String getNormalizedValue()
org.apache.xerces.xs.XSValuegetNormalizedValue in interface org.apache.xerces.xs.XSValuepublic org.apache.xerces.xs.XSSimpleTypeDefinition getTypeDefinition()
org.apache.xerces.xs.XSValuegetTypeDefinition in interface org.apache.xerces.xs.XSValuepublic org.apache.xerces.xs.XSSimpleTypeDefinition getMemberTypeDefinition()
org.apache.xerces.xs.XSValuegetMemberTypeDefinition in interface org.apache.xerces.xs.XSValuepublic void copyFrom(org.apache.xerces.xs.XSValue o)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.