|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.type.SchemaType
|
+--net.sf.saxon.type.SimpleType
|
+--com.saxonica.schema.UnionType
A class that represents the XML Schema Union simple-type.
| Field Summary |
| Fields inherited from class net.sf.saxon.type.SchemaType |
ALL_DERIVATIONS, DERIVE_BY_EXTENSION, DERIVE_BY_LIST, DERIVE_BY_RESTRICTION, DERIVE_BY_SUBSTITUTION, DERIVE_BY_UNION, finalProhibitions, INVALID, UNVALIDATED, VALIDATED, VALIDATING, validationPhase |
| Constructor Summary | |
UnionType(Schema schema)
Creates a new Union type. |
|
| Method Summary | |
java.util.List |
getMemberTypes()
Get the list of member types, as a List containing SimpleType objects |
SequenceIterator |
getTypedValue(java.lang.CharSequence value,
NodeInfo node)
Get the typed value corresponding to a given string value, assuming it is valid against this type |
boolean |
isListType()
Determine whether any member of this union is a list type. |
boolean |
isUnionType()
Return true if this type is a union type (that is, if its variety is union) |
java.util.Iterator |
iterateMemberTypes()
Returns an Iterator over all the SimpleTypes that are members of a union type. |
void |
setMemberTypes(java.util.List members)
Set the member types of this union type |
boolean |
validate(SchemaMarker schema)
Validate this Union, replacing all unresolved forwards references at the same time |
void |
validateContent(java.lang.CharSequence value,
NamespaceResolver nsResolver)
Check whether a given input string is valid according to this SimpleType |
| Methods inherited from class net.sf.saxon.type.SimpleType |
applyWhitespaceNormalization, getBuiltInBaseType, getFacet, getFacetCollection, getFacets, getFacets, getTypedValue, getWhitespaceAction, isNamespaceSensitive, isSimpleType, isTypeDerivationOK, setFacetCollection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnionType(Schema schema)
throws SchemaException
schema - the Schema for this Union (Cannot be null)| Method Detail |
public void setMemberTypes(java.util.List members)
public java.util.List getMemberTypes()
public java.util.Iterator iterateMemberTypes()
iterateMemberTypes in class SimpleTypepublic boolean isListType()
isListType in class SimpleTypepublic boolean isUnionType()
isUnionType in class SimpleType
public boolean validate(SchemaMarker schema)
throws javax.xml.transform.TransformerException
validate in class SimpleTypeschema - a Schema used for error reporting
javax.xml.transform.TransformerException
public void validateContent(java.lang.CharSequence value,
NamespaceResolver nsResolver)
throws ValidationException
SimpleType
validateContent in class SimpleTypevalue - the input string to be checkednsResolver - a namespace resolver used to resolve namespace prefixes if the type
is namespace sensitive. The value supplied may be null; in this case any namespace-sensitive
content will throw an UnsupportedOperationException.
ValidationException - if the content is invalid
public SequenceIterator getTypedValue(java.lang.CharSequence value,
NodeInfo node)
throws ValidationException
SimpleType
getTypedValue in class SimpleTypevalue - the string valuenode - the containing node: used only to resolve namespace prefixes in QName-valued content
AtomicValue
ValidationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||