|
||||||||||
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 | +--net.sf.saxon.type.ExternalObjectType
This class represents the type of an external Java object returned by an extension function.
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 | |
ExternalObjectType(java.lang.Class javaClass)
|
Method Summary | |
int |
getFingerprint()
Get the fingerprint of the name of this type |
ItemType |
getSuperType()
Get the type from which this item type is derived by restriction. |
boolean |
isBuiltIn()
Test whether this is a built-in type |
boolean |
matchesItem(Item item)
Test whether a given item conforms to this type |
java.lang.String |
toString()
Produce string representation for use in diagnostic output |
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.AtomicType |
getAtomizedItemType, getPrimitiveItemType, getPrimitiveType, getTypedValue, hashCode, relationshipTo, setIsBuiltIn, toString, validate |
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 ExternalObjectType(java.lang.Class javaClass)
Method Detail |
public boolean isBuiltIn()
AtomicType
isBuiltIn
in class AtomicType
public boolean matchesItem(Item item)
AtomicType
matchesItem
in interface ItemType
matchesItem
in class AtomicType
item
- The item to be tested
public void validateContent(java.lang.CharSequence value, NamespaceResolver nsResolver) throws ValidationException
validateContent
in class AtomicType
value
- the input string to be checkednsResolver
- a namespace resolver used to resolve namespace prefixes if the type
is namespace sensitive.
ValidationException
- if the content is invalid. This implementation of the method always throws a
ValidationException, because external objects cannot be stored in nodes and cannot be validatedpublic ItemType getSuperType()
AtomicType
getSuperType
in interface ItemType
getSuperType
in class AtomicType
public int getFingerprint()
SchemaType
getFingerprint
in class SchemaType
public java.lang.String toString()
AtomicType
toString
in class AtomicType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |