|
||||||||||
| 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
|
+--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.SchemaType |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTION, finalProhibitions, INVALID, UNVALIDATED, VALIDATED, VALIDATING, validationPhase |
| Constructor Summary | |
AtomicType()
|
|
| Method Summary | |
AtomicType |
getAtomizedItemType()
Get the item type of the atomic values that will be produced when an item of this type is atomized |
ItemType |
getPrimitiveItemType()
Get the primitive type from which this type is derived. |
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,
NamespaceResolver resolver)
Get the typed value corresponding to a given string value, assuming it is valid against this type |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isBuiltIn()
Test whether this is a built-in type |
boolean |
matchesItem(Item item)
Test whether a given item conforms to this type |
int |
relationshipTo(SchemaType other)
Determine the relationship of this schema type to another schema type. |
void |
setIsBuiltIn(boolean yesOrNo)
Mark this as a built-in type |
java.lang.String |
toString()
Produce string representation for use in diagnostic output |
java.lang.String |
toString(NamePool pool)
Display the type descriptor for diagnostics |
boolean |
validate(SchemaMarker 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AtomicType()
| Method Detail |
public void setIsBuiltIn(boolean yesOrNo)
public boolean isBuiltIn()
public boolean validate(SchemaMarker schema)
throws SchemaException
validate in class SimpleTypeschema - a Schema used for error reporting
SchemaException - when this SimpleType definition
is invalid.public boolean matchesItem(Item item)
matchesItem in interface ItemTypeitem - The item to be tested
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
public SequenceIterator getTypedValue(java.lang.CharSequence value,
NamespaceResolver resolver)
throws ValidationException
getTypedValue in class SimpleTypevalue - the string valueresolver -
ValidationExceptionpublic ItemType getSuperType()
getSuperType in interface ItemTypepublic ItemType getPrimitiveItemType()
Type.isPrimitiveType(int)
getPrimitiveItemType in interface ItemTypepublic int getPrimitiveType()
Type.isPrimitiveType(int)
getPrimitiveType in interface ItemTypepublic AtomicType getAtomizedItemType()
getAtomizedItemType in interface ItemTypepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(NamePool pool)
toString in interface ItemTypepublic int relationshipTo(SchemaType other)
relationshipTo in class SchemaTypeother - the other schema type
Type.SAME_TYPE if the types are the same; Type.SUBSUMES if the first
type subsumes the second (that is, all instances of the second type are also instances
of the first); Type.SUBSUMED_BY if the second type subsumes the first;
Type.OVERLAPS if the two types overlap (have a non-empty intersection);
Type.DISJOINT if the two types are disjoint (have an empty intersection)public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||