Package net.sf.saxon.s9api
Class ConstructedItemType
- java.lang.Object
-
- net.sf.saxon.s9api.ItemType
-
- net.sf.saxon.s9api.ConstructedItemType
-
class ConstructedItemType extends ItemType
An item type constructed by the ItemTypeFactory (as distinct from one that is predefined) This class is not user-visible.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.saxon.s9api.ItemType
ItemType.BuiltInAtomicItemType
-
-
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
Constructors Modifier Constructor Description protected
ConstructedItemType(ItemType underlyingType, Processor processor)
Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversionRules
getConversionRules()
Get the conversion rules implemented by this type.protected Processor
getProcessor()
Get the underlying ProcessorItemType
getUnderlyingItemType()
Method to get the underlying Saxon implementation objectboolean
matches(XdmItem item)
Determine whether this item type matches a given item.boolean
subsumes(ItemType other)
Determine whether this ItemType subsumes another ItemType.
-
-
-
Method Detail
-
getConversionRules
public ConversionRules getConversionRules()
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 classItemType
- Returns:
- the conversion rules
-
matches
public boolean matches(XdmItem item)
Determine whether this item type matches a given item.
-
subsumes
public boolean subsumes(ItemType other)
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.
-
getUnderlyingItemType
public ItemType getUnderlyingItemType()
Method to get the underlying Saxon implementation objectThis gives access to Saxon methods that may change from one release to another.
- Specified by:
getUnderlyingItemType
in classItemType
- Returns:
- the underlying Saxon implementation object
-
getProcessor
protected Processor getProcessor()
Get the underlying Processor- Returns:
- the processor used to create this ItemType. This will be null if the ItemType is one of the three
static constant item types
ItemType.ANY_ITEM
,ItemType.ANY_NODE
, orItemType.ANY_ATOMIC_VALUE
-
-