Package net.sf.saxon.s9api
Class ItemType.BuiltInAtomicItemType
- java.lang.Object
-
- net.sf.saxon.s9api.ItemType
-
- net.sf.saxon.s9api.ItemType.BuiltInAtomicItemType
-
-
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_ARRAY, ANY_ATOMIC_VALUE, ANY_FUNCTION, ANY_ITEM, ANY_MAP, ANY_NODE, ANY_URI, ATTRIBUTE_NODE, BASE64_BINARY, BOOLEAN, BYTE, COMMENT_NODE, DATE, DATE_TIME, DATE_TIME_STAMP, DAY_TIME_DURATION, DECIMAL, DOCUMENT_NODE, DOUBLE, DURATION, ELEMENT_NODE, ENTITY, ERROR, FLOAT, G_DAY, G_MONTH, G_MONTH_DAY, G_YEAR, G_YEAR_MONTH, HEX_BINARY, ID, IDREF, INT, INTEGER, LANGUAGE, LONG, NAME, NAMESPACE_NODE, NCNAME, NEGATIVE_INTEGER, NMTOKEN, NON_NEGATIVE_INTEGER, NON_POSITIVE_INTEGER, NORMALIZED_STRING, NOTATION, NUMERIC, POSITIVE_INTEGER, PROCESSING_INSTRUCTION_NODE, QNAME, SHORT, STRING, TEXT_NODE, TIME, TOKEN, underlyingType, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, UNTYPED_ATOMIC, YEAR_MONTH_DURATION
-
-
Constructor Summary
Constructors Constructor Description BuiltInAtomicItemType(BuiltInAtomicType underlyingType, ConversionRules conversionRules)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversionRules
getConversionRules()
Get the conversion rules implemented by this type.ItemType
getUnderlyingItemType()
Method to get the underlying Saxon implementation objectstatic ItemType.BuiltInAtomicItemType
makeVariant(ItemType.BuiltInAtomicItemType type, ConversionRules conversionRules)
boolean
matches(XdmItem item)
Determine whether this item type matches a given item.boolean
subsumes(ItemType other)
Determine whether this ItemType subsumes another ItemType.java.lang.String
toString()
Get a string representation of the type.-
Methods inherited from class net.sf.saxon.s9api.ItemType
equals, getTypeName, hashCode, one, oneOrMore, test, with, zeroOrMore, zeroOrOne
-
-
-
-
Constructor Detail
-
BuiltInAtomicItemType
public BuiltInAtomicItemType(BuiltInAtomicType underlyingType, ConversionRules conversionRules)
-
-
Method Detail
-
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.- Overrides:
getConversionRules
in classItemType
- Returns:
- the conversion rules
-
matches
public boolean matches(XdmItem item)
Description copied from class:ItemType
Determine whether this item type matches a given item.
-
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.
-
getUnderlyingItemType
public ItemType getUnderlyingItemType()
Description copied from class:ItemType
Method to get the underlying Saxon implementation objectThis gives access to Saxon methods that may change from one release to another.
- Overrides:
getUnderlyingItemType
in classItemType
- Returns:
- the underlying Saxon implementation object
-
toString
public java.lang.String toString()
Description copied from class:ItemType
Get a string representation of the type. This will be generally a string that conforms to the XPath ItemType production, for example a QName, or a construct such as "node()" or "map(*)".QNames are generally in EQName (
Q{uri}local
) format, except that the prefixxs:
is used for the XML Schema namespace.If the type is an anonymous schema type, the name of the nearest named base type will be given, preceded by the character "<".
In the case of a function item type, the returned string will be in parentheses (for example
(function() as xs:string)
) so that an occurrence indicator can be added without ambiguity.
-
-