Saxon.Api
Class XdmAtomicType
-
public class XdmAtomicType
- extends XdmItemType
An instance of class XdmAtomicType
represents a specific atomic type, for example
xs:double
, xs:integer
, or xs:anyAtomicType
. This may be either a built-in
atomic type or a type defined in a user-written schema.
To get an XdmAtomicType
instance representing a built-in atomic type, use one of the predefined instances
of the subclass XdmBuiltInAtomicType
. To get an XdmAtomicType
instance representing a user-defined
atomic type (defined in a schema), use the method GetAtomicType
defined on the SchemaManager
class.
Field Summary |
|
---|---|
static XdmAtomicType | ANY_URI ItemType representing the primitive type xs:anyURI |
static XdmAtomicType | BASE64_BINARY ItemType representing the primitive type xs:base64Binary |
static XdmAtomicType | BOOLEAN ItemType representing the primitive type xs:boolean |
static XdmAtomicType | BYTE ItemType representing the built-in (but non-primitive) type xs:byte |
static XdmAtomicType | DATE ItemType representing the primitive type xs:date |
static XdmAtomicType | DATE_TIME ItemType representing the primitive type xs:dateTime |
static XdmAtomicType | DATE_TIME_STAMP ItemType representing the built-in (but non-primitive) type xs:dateTimeStamp (introduced in XSD 1.1) |
static XdmAtomicType | DAY_TIME_DURATION ItemType representing the built-in (but non-primitive) type xs:dayTimeDuration |
static XdmAtomicType | DECIMAL ItemType representing the primitive type xs:decimal |
static XdmAtomicType | DOUBLE ItemType representing the primitive type xs:double |
static XdmAtomicType | DURATION ItemType representing the primitive type xs:duration |
static XdmAtomicType | ENTITY ItemType representing the built-in (but non-primitive) type xs:ENTITY |
static XdmAtomicType | FLOAT ItemType representing the primitive type xs:float |
static XdmAtomicType | G_DAY ItemType representing the primitive type xs:gDay |
static XdmAtomicType | G_MONTH ItemType representing the primitive type xs:gMonth |
static XdmAtomicType | G_MONTH_DAY ItemType representing the primitive type xs:gMonthDay |
static XdmAtomicType | G_YEAR ItemType representing the primitive type xs:gYear |
static XdmAtomicType | G_YEAR_MONTH ItemType representing the primitive type xs:gYearMonth |
static XdmAtomicType | HEX_BINARY ItemType representing the primitive type xs:hexBinary |
static XdmAtomicType | ID ItemType representing the built-in (but non-primitive) type xs:ID |
static XdmAtomicType | IDREF ItemType representing the built-in (but non-primitive) type xs:IDREF |
static XdmAtomicType | Instance
Instance object of the |
static XdmAtomicType | INT ItemType representing the built-in (but non-primitive) type xs:int |
static XdmAtomicType | INTEGER ItemType representing the built-in (but non-primitive) type xs:integer |
static XdmAtomicType | LANGUAGE ItemType representing the built-in (but non-primitive) type xs:language |
static XdmAtomicType | LONG ItemType representing the built-in (but non-primitive) type xs:long |
static XdmAtomicType | NAME ItemType representing the built-in (but non-primitive) type xs:Name |
static XdmAtomicType | NCNAME ItemType representing the built-in (but non-primitive) type xs:NCName |
static XdmAtomicType | NEGATIVE_INTEGER ItemType representing the built-in (but non-primitive) type xs:negativeInteger |
static XdmAtomicType | NMTOKEN ItemType representing the built-in (but non-primitive) type xs:NMTOKEN |
static XdmAtomicType | NON_NEGATIVE_INTEGER ItemType representing the built-in (but non-primitive) type xs:nonNegativeInteger |
static XdmAtomicType | NON_POSITIVE_INTEGER
|
static XdmAtomicType | NORMALIZED_STRING ItemType representing the built-in (but non-primitive) type xs:normalizedString |
static XdmAtomicType | NOTATION ItemType representing the primitive type xs:NOTATION |
static XdmAtomicType | POSITIVE_INTEGER ItemType representing the built-in (but non-primitive) type xs:positiveInteger |
static XdmAtomicType | QNAME ItemType representing the primitive type xs:QName |
static XdmAtomicType | SHORT ItemType representing the built-in (but non-primitive) type xs:short |
static XdmAtomicType | STRING ItemType representing the primitive type xs:string |
static XdmAtomicType | TIME ItemType representing the primitive type xs:time |
static XdmAtomicType | TOKEN ItemType representing the built-in (but non-primitive) type xs:token |
static XdmAtomicType | UNSIGNED_BYTE ItemType representing the built-in (but non-primitive) type xs:unsignedByte |
static XdmAtomicType | UNSIGNED_INT ItemType representing the built-in (but non-primitive) type xs:unsignedInt |
static XdmAtomicType | UNSIGNED_LONG ItemType representing the built-in (but non-primitive) type xs:unsignedLong |
static XdmAtomicType | UNSIGNED_SHORT ItemType representing the built-in (but non-primitive) type xs:unsignedShort |
static XdmAtomicType | UNTYPED_ATOMIC ItemType representing the XPath-defined type xs:untypedAtomic |
static XdmAtomicType | YEAR_MONTH_DURATION ItemType representing the built-in (but non-primitive) type xs:yearMonthDuration |
Property Summary |
|
---|---|
QName | Name The name of the atomic type, or null if the type is anonymous. |
Method Summary |
|
---|---|
static XdmAtomicType | BuiltInAtomicType(QName name)
Get an |
bool | Matches(XdmItem item) Determine whether this item type matches a given item |
bool | Subsumes(XdmItemType other)
Determine whether this ItemType subsumes another ItemType. Specifically
|
Field Detail
BASE64_BINARY
ItemType representing the primitive type xs:base64Binary
BYTE
ItemType representing the built-in (but non-primitive) type xs:byte
DATE_TIME
ItemType representing the primitive type xs:dateTime
DATE_TIME_STAMP
ItemType representing the built-in (but non-primitive) type xs:dateTimeStamp (introduced in XSD 1.1)
DAY_TIME_DURATION
ItemType representing the built-in (but non-primitive) type xs:dayTimeDuration
ENTITY
ItemType representing the built-in (but non-primitive) type xs:ENTITY
G_MONTH_DAY
ItemType representing the primitive type xs:gMonthDay
G_YEAR_MONTH
ItemType representing the primitive type xs:gYearMonth
HEX_BINARY
ItemType representing the primitive type xs:hexBinary
IDREF
ItemType representing the built-in (but non-primitive) type xs:IDREF
INT
ItemType representing the built-in (but non-primitive) type xs:int
INTEGER
ItemType representing the built-in (but non-primitive) type xs:integer
LANGUAGE
ItemType representing the built-in (but non-primitive) type xs:language
LONG
ItemType representing the built-in (but non-primitive) type xs:long
NAME
ItemType representing the built-in (but non-primitive) type xs:Name
NCNAME
ItemType representing the built-in (but non-primitive) type xs:NCName
NEGATIVE_INTEGER
ItemType representing the built-in (but non-primitive) type xs:negativeInteger
NMTOKEN
ItemType representing the built-in (but non-primitive) type xs:NMTOKEN
NON_NEGATIVE_INTEGER
ItemType representing the built-in (but non-primitive) type xs:nonNegativeInteger
NORMALIZED_STRING
ItemType representing the built-in (but non-primitive) type xs:normalizedString
POSITIVE_INTEGER
ItemType representing the built-in (but non-primitive) type xs:positiveInteger
SHORT
ItemType representing the built-in (but non-primitive) type xs:short
TOKEN
ItemType representing the built-in (but non-primitive) type xs:token
UNSIGNED_BYTE
ItemType representing the built-in (but non-primitive) type xs:unsignedByte
UNSIGNED_INT
ItemType representing the built-in (but non-primitive) type xs:unsignedInt
UNSIGNED_LONG
ItemType representing the built-in (but non-primitive) type xs:unsignedLong
UNSIGNED_SHORT
ItemType representing the built-in (but non-primitive) type xs:unsignedShort
UNTYPED_ATOMIC
ItemType representing the XPath-defined type xs:untypedAtomic
YEAR_MONTH_DURATION
ItemType representing the built-in (but non-primitive) type xs:yearMonthDuration
Method Detail
BuiltInAtomicType
Matches
Determine whether this item type matches a given item
Parameters:
item
- the item to be tested against this item typeReturns:
Subsumes
Determine whether this ItemType subsumes another ItemType. Specifically
A.Sumsumes(B)
is true if every value that matches the ItemType B also
matches the ItemType A.
Parameters:
other
- the other ItemTypeReturns:
Get an
XdmAtomicType
object representing a built-in atomic type with a given name.Parameters:
name
- The name of the required built-in atomic typeReturns:
XdmAtomicType
object representing the built-in atomic type with the supplied name. Returns null if there is no built-in atomic type with this name. It is undefined whether two requests for the same built-in type will return the same object.