Package net.sf.saxon.type.gnode
Class AnyXNodeType
java.lang.Object
net.sf.saxon.type.gnode.GNodeType
net.sf.saxon.type.gnode.XNodeType
net.sf.saxon.type.gnode.AnyXNodeType
- All Implemented Interfaces:
NodePredicate,NodeTest,ItemType,ItemTypeWithSequenceTypeCache
An
AnyXNodeType corresponds to the item type node(), which matches any XNode.-
Method Summary
Modifier and TypeMethodDescriptionExpand this item type to a choice item type.Get the set of allowed node names that this type if capable of matchingGet an alphabetic code representing the type, or at any rate, the nearest built-in type from which this type is derived.final doubleDetermine the default priority of this node test when used on its own as a Patternstatic AnyXNodeTypeGet an instance of AnyNodeTestgetUType()Get the correspondingUType.booleanTest whether a given item conforms to this typetoString()Methods inherited from class net.sf.saxon.type.gnode.XNodeType
asXNodeTest, getCoercionPlan, getContentType, getGenre, getRequiredFingerprint, isNillableMethods inherited from class net.sf.saxon.type.gnode.GNodeType
explainMismatch, getAtomizedItemType, getItemType, getPrimitiveItemType, getPrimitiveType, getQNameTest, isAtomicType, isAtomizable, isPlainType, one, oneOrMore, test, toShortString, zeroOrMore, zeroOrOneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.type.ItemType
getNormalizedDefaultPriority, normalizeItemType, toExportString
-
Method Details
-
getInstance
Get an instance of AnyNodeTest- Returns:
- the singleton instance of this class
-
getAllowedNodeNames
Get the set of allowed node names that this type if capable of matching- Specified by:
getAllowedNodeNamesin classXNodeType- Returns:
- the allowed node names
-
matches
Test whether a given item conforms to this type -
getBasicAlphaCode
Get an alphabetic code representing the type, or at any rate, the nearest built-in type from which this type is derived. The codes are designed so that for any two built-in types A and B, alphaCode(A) is a prefix of alphaCode(B) if and only if A is a supertype of B.- Returns:
- the alphacode for the nearest containing built-in type. For example: for xs:string return "AS", for xs:boolean "AB", for node() "N", for element() "NE", for map(*) "FM", for array(*) "FA".
-
getUType
Get the correspondingUType. A UType is a union of primitive item types. -
asChoiceItemType
Description copied from interface:ItemTypeExpand this item type to a choice item type. The default delivers a choice with this type as its only member. Implementations for abstract types return a choice of the corresponding concrete types, for examplenode()expands to a choice of the seven node kinds. The implementation for a choice type that includes abstract member types should expand these recursively. -
getDefaultPriority
public final double getDefaultPriority()Determine the default priority of this node test when used on its own as a Pattern- Returns:
- the default priority
-
toString
-