|
|||||||||||
| 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.importer.SimpleTypeDefinition
A simple type definition holds all the information about a simpleType during the course of schema processing (unmarshalling). On completion of schema processing, more specific objects are created, for example ListType, AtomicType, or UnionType, and the SimpleTypeDefinition is then discarded.
| 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 | |
SimpleTypeDefinition(Schema schema)
|
|
| Method Summary | |
void |
addMemberType(java.lang.Object memberType)
|
boolean |
fixup(Schema schema)
Fixup the references |
java.util.List |
getFacetList()
Return all the facets for this type |
SimpleType |
getSimpleType()
Get the simple type created for this definition |
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 |
void |
setIsSimpleContent(boolean b)
|
void |
setItemType(java.lang.Object itemType)
|
boolean |
validate(Schema schema)
Checks the validity of this SimpleType definition. |
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, isListType, isNamespaceSensitive, isSimpleType, isTypeDerivationOK, isUnionType, iterateMemberTypes, setFacetCollection, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleTypeDefinition(Schema schema)
| Method Detail |
public void setItemType(java.lang.Object itemType)
public void setIsSimpleContent(boolean b)
public void addMemberType(java.lang.Object memberType)
public SimpleType getSimpleType()
public boolean fixup(Schema schema)
throws SchemaException
fixup in interface SchemaComponentschema - The schema is used for reporting errors
SchemaExceptionpublic java.util.List getFacetList()
public boolean validate(Schema schema)
throws javax.xml.transform.TransformerException
validate in interface SchemaComponentschema - if this is not null, any errors that are detected should
be reported using the error() method of this schema.
javax.xml.transform.TransformerException - when this SimpleType definition
is invalid.
public SequenceIterator getTypedValue(java.lang.CharSequence value,
NodeInfo node)
throws ValidationException
getTypedValue in class SimpleTypevalue - the string valuenode - the containing node (used to resolve QName prefixes)
ValidationException
public void validateContent(java.lang.CharSequence value,
NamespaceResolver nsResolver)
throws ValidationException
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
java.lang.UnsupportedOperationException - if the type is namespace-sensitive and no namespace
resolver is supplied
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||