Modifier and Type | Field and Description |
---|---|
XSSimpleType |
actualType
The declared type of the value.
|
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.
|
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.
|
String |
normalizedValue
The normalized value of a string value
|
Constructor and Description |
---|
ValidatedInfo() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(XSValue o) |
Object |
getActualValue()
The actual value.
|
short |
getActualValueType()
The actual value built-in datatype, e.g.
|
ShortList |
getListValueTypes()
In the case the actual value represents a list, i.e.
|
XSSimpleTypeDefinition |
getMemberTypeDefinition()
If the declared simple type definition is a union, return the member
type actually used to validate the value.
|
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. |
String |
getNormalizedValue()
The schema normalized value.
|
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
|
String |
stringValue()
Return a string representation of the value.
|
public String normalizedValue
public Object actualValue
public short actualValueType
public XSSimpleType actualType
public XSSimpleType memberType
public XSSimpleType[] memberTypes
public ShortList itemValueTypes
public void reset()
public String stringValue()
public static boolean isComparable(ValidatedInfo info1, ValidatedInfo info2)
public Object getActualValue()
XSValue
null
if the value is in error.getActualValue
in interface XSValue
public short getActualValueType()
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 XSValue
public ShortList getListValueTypes()
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 XSValue
public XSObjectList getMemberTypeDefinitions()
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 XSValue
public String getNormalizedValue()
XSValue
getNormalizedValue
in interface XSValue
public XSSimpleTypeDefinition getTypeDefinition()
XSValue
getTypeDefinition
in interface XSValue
public XSSimpleTypeDefinition getMemberTypeDefinition()
XSValue
getMemberTypeDefinition
in interface XSValue
public void copyFrom(XSValue o)
Copyright © 2016 JBoss by Red Hat. All rights reserved.