public class AnyItemType extends java.lang.Object implements ItemType.WithSequenceTypeCache
ItemType.WithSequenceTypeCache| Modifier and Type | Method and Description |
|---|---|
AtomicType |
getAtomizedItemType()
Get the item type of the atomic values that will be produced when an item
of this type is atomized
|
java.lang.String |
getBasicAlphaCode()
Get an alphabetic code representing the type, or at any rate, the nearest built-in type
from which this type is derived.
|
double |
getDefaultPriority()
Get the default priority when this ItemType is used as an XSLT pattern
|
Genre |
getGenre()
Determine the Genre (top-level classification) of this type
|
static AnyItemType |
getInstance()
Factory method to get the singleton instance
|
ItemType |
getPrimitiveItemType()
Get the primitive item type corresponding to this item type.
|
int |
getPrimitiveType()
Get the primitive type corresponding to this item type.
|
UType |
getUType()
Get the corresponding
UType. |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isAtomicType()
Determine whether this item type is an atomic type
|
boolean |
isAtomizable(TypeHierarchy th)
Ask whether values of this type are atomizable
|
boolean |
isPlainType()
Determine whether this item type is atomic (that is, whether it can ONLY match
atomic values)
|
boolean |
matches(Item item,
TypeHierarchy th)
Test whether a given item conforms to this type
|
SequenceType |
one()
Get a sequence type representing exactly one instance of this atomic type
|
SequenceType |
oneOrMore()
Get a sequence type representing one or more instances of this atomic type
|
java.lang.String |
toString() |
SequenceType |
zeroOrMore()
Get a sequence type representing one or more instances of this atomic type
|
SequenceType |
zeroOrOne()
Get a sequence type representing zero or one instances of this atomic type
|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitexplainMismatch, getFullAlphaCode, getNormalizedDefaultPriority, isTrueItemType, toExportStringpublic static AnyItemType getInstance()
public Genre getGenre()
public UType getUType()
UType. A UType is a union of primitive item
types.public boolean isAtomicType()
isAtomicType in interface ItemTypepublic java.lang.String getBasicAlphaCode()
getBasicAlphaCode in interface ItemTypepublic boolean isPlainType()
isPlainType in interface ItemTypepublic boolean matches(Item item, TypeHierarchy th)
public ItemType getPrimitiveItemType()
getPrimitiveItemType in interface ItemTypepublic int getPrimitiveType()
ItemTypegetPrimitiveType in interface ItemTypepublic AtomicType getAtomizedItemType()
ItemTypegetAtomizedItemType in interface ItemTypepublic boolean isAtomizable(TypeHierarchy th)
isAtomizable in interface ItemTypeth - The type hierarchy cachepublic double getDefaultPriority()
ItemTypegetDefaultPriority in interface ItemTypepublic java.lang.String toString()
public int hashCode()
hashCode in class java.lang.Objectpublic SequenceType one()
one in interface ItemType.WithSequenceTypeCachepublic SequenceType zeroOrOne()
zeroOrOne in interface ItemType.WithSequenceTypeCachepublic SequenceType oneOrMore()
oneOrMore in interface ItemType.WithSequenceTypeCachepublic SequenceType zeroOrMore()
zeroOrMore in interface ItemType.WithSequenceTypeCacheCopyright (c) 2004-2020 Saxonica Limited.