|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.SchemaTypeImpl
com.saxonica.schema.UserSimpleType
com.saxonica.schema.UserUnionType
A class that represents the XML Schema Union simple-type.
Field Summary |
Fields inherited from class com.saxonica.schema.SchemaTypeImpl |
finalProhibitions |
Fields inherited from interface net.sf.saxon.type.SchemaType |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTION |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
UserUnionType(PreparedSchema schema)
Creates a new Union type. |
Method Summary | |
AtomicType |
getCommonAtomicType()
Get the most specific possible atomic type that all items in this SimpleType belong to |
java.util.List |
getMemberTypeReferences()
Get the list of member types, as a List containing TypeReference objects |
SequenceIterator |
getTypedValue(java.lang.CharSequence value,
NamespaceResolver resolver,
NameChecker nameChecker)
Get the typed value corresponding to a given string value, assuming it is valid against this type |
boolean |
isAtomicType()
Test whether this Simple Type is an atomic type |
boolean |
isListType()
Determine whether this 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 |
iterateMemberTypeReferences()
Returns an Iterator over all the SimpleTypes that are members of a union type. |
void |
setMemberTypeReferences(java.util.List members)
Set the member types of this union type |
boolean |
validate(PreparedSchema schema)
Validate this Union, replacing all unresolved forwards references at the same time |
ValidationException |
validateContent(java.lang.CharSequence value,
NamespaceResolver nsResolver,
NameChecker nameChecker)
Check whether a given input string is valid according to this SimpleType |
Methods inherited from class com.saxonica.schema.UserSimpleType |
analyzeContentExpression, applyWhitespaceNormalization, atomize, getBuiltInBaseType, getFacet, getFacetCollection, getFacets, getFacets, getTypedValue, getWhitespaceAction, isNamespaceSensitive, isSimpleType, isTypeDerivationOK, isTypeDerivationOK, setFacetCollection |
Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getFixupStatus, getLineNumber, getPublicId, getSchema, getSystemId, getValidationStatus, lookForCycles, setFixupStatus, setLineNumber, setLocator, setSchema, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.type.SchemaType |
allowsDerivation, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getFingerprint, getNameCode, isComplexType, isSameType |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
Constructor Detail |
public UserUnionType(PreparedSchema schema)
schema
- the Schema for this Union (Cannot be null)Method Detail |
public AtomicType getCommonAtomicType()
public void setMemberTypeReferences(java.util.List members)
public java.util.List getMemberTypeReferences()
public java.util.Iterator iterateMemberTypeReferences()
public boolean isAtomicType()
isAtomicType
in interface SimpleType
isAtomicType
in class UserSimpleType
public boolean isListType()
isListType
in interface SimpleType
isListType
in class UserSimpleType
public boolean isUnionType()
isUnionType
in interface SimpleType
isUnionType
in class UserSimpleType
public boolean validate(PreparedSchema schema) throws SchemaException, ValidationException
validate
in class UserSimpleType
schema
- a Schema used for error reporting
SchemaException
ValidationException
public ValidationException validateContent(java.lang.CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker)
value
- 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.nameChecker
-
java.lang.UnsupportedOperationException
- if the type is namespace-sensitive and no namespace
resolver is suppliedpublic SequenceIterator getTypedValue(java.lang.CharSequence value, NamespaceResolver resolver, NameChecker nameChecker) throws ValidationException
SimpleType
value
- the string valueresolver
- a namespace resolver used to resolve any namespace prefixes appearing
in the content of values. Can supply null, in which case any namespace-sensitive content
will be rejected.nameChecker
-
AtomicValue
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |