|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.type.SchemaType
net.sf.saxon.type.SimpleType
net.sf.saxon.type.AtomicType
An object belonging to this class represents an atomic type: either a built-in atomic type, or a user-defined atomic type. There is at most one AtomicType object for each distinct type in the schema (so equality can safely be tested using the == operator).
Field Summary |
Fields inherited from class net.sf.saxon.type.SimpleType |
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION |
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 | |
AtomicType()
|
Method Summary | |
Facet |
getMax()
Gets the MAX_INCLUSIVE facet or the MAX_EXCLUSIVE facet (both are never defined at the same time) returns null if there is no maximum |
Facet |
getMin()
Gets the MIN_INCLUSIVE facet or the MIN_EXCLUSIVE facet (both are never defined at the same time) returns null if there is no minimum |
java.lang.String |
getPattern()
Gets the pattern facet returns null if there is none |
int |
getPrimitiveType()
Get the primitive type from which this type is derived. |
ItemType |
getSuperType()
Get the type from which this item type is derived by restriction. |
SequenceIterator |
getTypedValue(java.lang.CharSequence value)
Get the typed value corresponding to a given string value, assuming it is valid against this type |
boolean |
isBuiltIn()
Test whether this is a built-in type |
boolean |
isMaxInclusive()
Tells if the maximum is inclusive or not Has no meaning if there is no maxInclusive/Exclusive facet |
boolean |
isMinInclusive()
Tells if the minimum is inclusive or not Has no meaning if there is no minInclusive/Exclusive facet |
boolean |
isSameType(ItemType other)
Test whether this is the same type as another ItemType. |
boolean |
matchesItem(Item item)
Test whether a given item conforms to this type |
void |
setIsBuiltIn(boolean yesOrNo)
Mark this as a built-in type |
java.lang.String |
toString()
Produce string representation for use in diagnostic output |
void |
validateContent(java.lang.CharSequence value,
NamespaceResolver namespaceResolver)
Check whether a given input string is valid according to this SimpleType |
Methods inherited from class net.sf.saxon.type.SimpleType |
addFacet, getBuiltInBaseType, getFacet, getFacetList, getFacets, getFacets, getLocalFacets, getTypedValue, isListType, isNamespaceSensitive, isSimpleType, setFacets, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AtomicType()
Method Detail |
public void setIsBuiltIn(boolean yesOrNo)
public boolean isBuiltIn()
public boolean matchesItem(Item item)
matchesItem
in interface ItemType
item
- The item to be tested
public void validateContent(java.lang.CharSequence value, NamespaceResolver namespaceResolver) throws ValidationException
validateContent
in class SimpleType
ValidationException
- if the value is not validpublic SequenceIterator getTypedValue(java.lang.CharSequence value) throws ValidationException
getTypedValue
in class SimpleType
value
- the string value
ValidationException
public ItemType getSuperType()
getSuperType
in interface ItemType
public int getPrimitiveType()
Type.isPrimitiveType(int)
getPrimitiveType
in interface ItemType
public java.lang.String toString()
toString
in interface ItemType
public java.lang.String getPattern()
public boolean isMinInclusive()
public boolean isMaxInclusive()
public Facet getMin()
public Facet getMax()
public boolean isSameType(ItemType other)
ItemType
isSameType
in interface ItemType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |