|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 and factory methods
to obtain instances representing simple item types, such as
item()
, node()
, node kind tests such as
text()
and comment()
, and built-in atomic types.
More complicated item types, especially those that are dependent on information in a schema,
are available using factory methods on the SchemaManager
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 |
Method Summary | |
---|---|
ItemType |
getUnderlyingItemType()
Method to get the underlying Saxon implementation object |
boolean |
matches(XdmItem item)
Determine whether this item type matches a given item. |
Methods inherited from class java.lang.Object |
---|
equals, 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
Method Detail |
---|
public boolean matches(XdmItem item)
item
- the item to be tested against this item type
public ItemType getUnderlyingItemType()
This gives access to Saxon methods that may change from one release to another.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |