public class ItemType
extends java.lang.Object
This class contains a number of static properties
to obtain instances representing simple item types, such as
item(), node(), and xs:anyAtomicType.
More complicated item types, especially those that are dependent on information in a schema,
are available using factory methods on the ItemTypeFactory object.
| Modifier and Type | Field | Description |
|---|---|---|
static ItemType |
ANY_ATOMIC_VALUE |
ItemType representing the type xs:anyAtomicType, that is, any atomic value
|
static ItemType |
ANY_ITEM |
ItemType representing the type item(), that is, any item at all
|
static ItemType |
ANY_NODE |
ItemType representing the type node(), that is, any node
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
ItemType(ItemType underlyingType,
Processor processor) |
| Modifier and Type | Method | Description |
|---|---|---|
protected Processor |
getProcessor() |
Get the underlying Processor
|
ItemType |
getUnderlyingItemType() |
Method to get the underlying Saxon implementation object
|
boolean |
matches(XdmItem item) |
Determine whether this item type matches a given item.
|
boolean |
subsumes(ItemType other) |
Determine whether this ItemType subsumes another ItemType.
|
public static ItemType ANY_ITEM
public static ItemType ANY_NODE
public static ItemType ANY_ATOMIC_VALUE
public boolean matches(XdmItem item)
item - the item to be tested against this item typepublic boolean subsumes(ItemType other)
A.subsumes(B) is true if every value that matches the ItemType B also matches
the ItemType A.other - the other ItemTypepublic ItemType getUnderlyingItemType()
This gives access to Saxon methods that may change from one release to another.
protected Processor getProcessor()