|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.s9api.ItemType
public class ItemType
An item type, as defined in the XPath/XQuery specifications.
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.
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
protected |
ItemType(ItemType underlyingType,
Processor processor)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ItemType ANY_ITEM
public static ItemType ANY_NODE
public static ItemType ANY_ATOMIC_VALUE
Constructor Detail |
---|
protected ItemType(ItemType underlyingType, Processor processor)
Method Detail |
---|
public boolean matches(XdmItem item)
item
- the item to be tested against this item type
public boolean subsumes(ItemType other)
A.subsumes(B) is true if every value that matches the ItemType B also matches
the ItemType A.
- Parameters:
other
- the other ItemType
- Returns:
- true if this ItemType subsumes the other ItemType. This includes the case where A and B
represent the same ItemType.
- Since:
- 9.1
public ItemType getUnderlyingItemType()
This gives access to Saxon methods that may change from one release to another.
protected Processor getProcessor()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |