|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.s9api.ItemType
net.sf.saxon.s9api.ConstructedItemType
class ConstructedItemType
An item type constructed by the ItemTypeFactory (as distinct from one that is predefined) This class is not user-visible.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.s9api.ItemType |
|---|
ANY_ATOMIC_VALUE, ANY_ITEM, ANY_NODE, ANY_URI, BASE64_BINARY, BOOLEAN, BYTE, DATE, DATE_TIME, DATE_TIME_STAMP, DAY_TIME_DURATION, DECIMAL, DOUBLE, DURATION, ENTITY, FLOAT, G_DAY, G_MONTH, G_MONTH_DAY, G_YEAR, G_YEAR_MONTH, HEX_BINARY, ID, IDREF, INT, INTEGER, LANGUAGE, LONG, NAME, NCNAME, NEGATIVE_INTEGER, NMTOKEN, NON_NEGATIVE_INTEGER, NON_POSITIVE_INTEGER, NORMALIZED_STRING, NOTATION, NUMERIC, POSITIVE_INTEGER, QNAME, SHORT, STRING, TIME, TOKEN, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, UNTYPED_ATOMIC, YEAR_MONTH_DURATION |
| Constructor Summary | |
|---|---|
protected |
ConstructedItemType(ItemType underlyingType,
Processor processor)
Protected constructor |
| 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 |
| Constructor Detail |
|---|
protected ConstructedItemType(ItemType underlyingType,
Processor processor)
underlyingType - the Saxon internal item type. Must not be null.processor - The s9api processor Must not be null| Method Detail |
|---|
public boolean matches(XdmItem item)
matches in class ItemTypeitem - 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.
- Specified by:
subsumes in class ItemType
- 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.
getUnderlyingItemType in class ItemTypeprotected Processor getProcessor()
ItemType.ANY_ITEM, ItemType.ANY_NODE, or ItemType.ANY_ATOMIC_VALUE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||