net.sf.saxon.s9api
Class ItemType.BuiltInAtomicItemType
java.lang.Object
net.sf.saxon.s9api.ItemType
net.sf.saxon.s9api.ItemType.BuiltInAtomicItemType
- Enclosing class:
- ItemType
static class ItemType.BuiltInAtomicItemType
- extends ItemType
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, PRECISION_DECIMAL, QNAME, SHORT, STRING, TIME, TOKEN, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, UNTYPED_ATOMIC, YEAR_MONTH_DURATION |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemType.BuiltInAtomicItemType
public ItemType.BuiltInAtomicItemType(BuiltInAtomicType underlyingType,
ConversionRules conversionRules)
makeVariant
public static ItemType.BuiltInAtomicItemType makeVariant(ItemType.BuiltInAtomicItemType type,
ConversionRules conversionRules)
getConversionRules
public ConversionRules getConversionRules()
- Description copied from class:
ItemType
- Get the conversion rules implemented by this type. The conversion rules reflect variations
between different versions of the W3C specifications, for example XSD 1.1 allows "+INF" as
a lexical representation of xs:double, while XSD 1.0 does not.
- Specified by:
getConversionRules
in class ItemType
- Returns:
- the conversion rules
matches
public boolean matches(XdmItem item)
- Description copied from class:
ItemType
- Determine whether this item type matches a given item.
- Specified by:
matches
in class ItemType
- Parameters:
item
- the item to be tested against this item type
- Returns:
- true if the item matches this item type, false if it does not match.
subsumes
public boolean subsumes(ItemType other)
- Description copied from class:
ItemType
- Determine whether this ItemType subsumes another ItemType. Specifically,
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.
getUnderlyingItemType
public ItemType getUnderlyingItemType()
- Description copied from class:
ItemType
- Method to get the underlying Saxon implementation object
This gives access to Saxon methods that may change from one release to another.
- Specified by:
getUnderlyingItemType
in class ItemType
- Returns:
- the underlying Saxon implementation object