|
||||||||||
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
An XML Schema SimpleType
Field Summary | |
static java.lang.String |
FINAL_ALL
The value of the final attribute used for blocking all types of derivation |
static java.lang.String |
FINAL_LIST
The value of the final attribute used for blocking list derivation |
static java.lang.String |
FINAL_RESTRICTION
The value of the final attribute used for blocking restriction derivation |
static java.lang.String |
FINAL_UNION
The value of the final attribute used for blocking union derivation |
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 | |
SimpleType()
Default constructor |
Method Summary | |
void |
addFacet(Facet facet)
Adds the given Facet to this Simpletype. |
SimpleType |
getBuiltInBaseType()
Returns the built in type this type is derived from. |
Facet |
getFacet(java.lang.String name)
Returns the first facet associated with the given name |
java.util.List |
getFacetList()
Returns the facets associated with the given name |
FacetListIterator |
getFacets()
Returns an Enumeration of all the Facets (including inherited) facets for this type. |
java.util.Iterator |
getFacets(java.lang.String name)
Returns the facets associated with the given name |
java.util.Iterator |
getLocalFacets()
Returns the facets of this type (without the parent's facets) |
abstract SequenceIterator |
getTypedValue(java.lang.CharSequence value)
Get the typed value corresponding to a given string value, assuming it is valid against this type |
SequenceIterator |
getTypedValue(NodeInfo node)
Get the typed value of a node that is annotated with this schema type |
boolean |
isListType()
Returns true if this type is derived by list, or if it is derived by restriction from a list type, or if it is a union that contains a list as one of its members |
boolean |
isNamespaceSensitive()
Test whether this simple type is namespace-sensitive, that is, whether it is derived from xs:QName or xs:NOTATION |
boolean |
isSimpleType()
Returns true if this SchemaType is a SimpleType |
void |
setFacets(java.util.List facets)
Set all the facets of this simple type |
boolean |
validate(SchemaMarker schema)
Checks the validity of this SimpleType defintion. |
abstract void |
validateContent(java.lang.CharSequence value,
NamespaceResolver namespaceResolver)
Check whether a given input string is valid according to this SimpleType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FINAL_ALL
public static final java.lang.String FINAL_LIST
public static final java.lang.String FINAL_UNION
public static final java.lang.String FINAL_RESTRICTION
Constructor Detail |
public SimpleType()
Method Detail |
public final boolean isSimpleType()
isSimpleType
in class SchemaType
public boolean isListType()
public void setFacets(java.util.List facets)
public void addFacet(Facet facet)
facet
- the Facet to add to this Simpletypepublic Facet getFacet(java.lang.String name)
public java.util.List getFacetList()
public java.util.Iterator getFacets(java.lang.String name)
public FacetListIterator getFacets()
public java.util.Iterator getLocalFacets()
public SimpleType getBuiltInBaseType()
public boolean isNamespaceSensitive()
public boolean validate(SchemaMarker schema) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
- when this SimpleType definition
is invalid.public abstract void validateContent(java.lang.CharSequence value, NamespaceResolver namespaceResolver) throws ValidationException
ValidationException
public final SequenceIterator getTypedValue(NodeInfo node) throws XPathException
getTypedValue
in class SchemaType
XPathException
public abstract SequenceIterator getTypedValue(java.lang.CharSequence value) throws ValidationException
value
- the string value
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |