| Enum Constant and Description |
|---|
AAT
Any atomic type.
|
AST
Any simple type.
|
ATM
Untyped Atomic type.
|
ATY
Any simple type.
|
B64
Base64 binary type.
|
BIN
Implementation specific: binary type.
|
BLN
Boolean type.
|
BYT
Byte type.
|
DAT
Date type.
|
DAY
Day type.
|
DBL
Double type.
|
DEC
Decimal type.
|
DTD
Day time duration type.
|
DTM
DateTime type.
|
DTS
DateTimeStamp type.
|
DUR
Duration type.
|
EMP
Empty sequence type.
|
ENT
Entity type.
|
FLT
Float type.
|
HEX
Hex binary type.
|
ID
ID type.
|
IDR
IDREF type.
|
INT
Int type.
|
ITEM
Item type.
|
ITR
Integer type.
|
JAVA
Java type.
|
LAN
Language type.
|
LNG
Long type.
|
MDA
Month day type.
|
MON
Month type.
|
NAM
Name type.
|
NCN
NCName type.
|
NIN
Negative integer type.
|
NMT
NMTOKEN type.
|
NNI
Non-negative integer type.
|
NOT
NOTATION Type.
|
NPI
Non-positive integer type.
|
NST
Normalized String type.
|
PDC
Precision decimal type.
|
PIN
Positive integer type.
|
QNM
QName Type.
|
SEQ
Sequence type.
|
SHR
Short type.
|
STR
String type.
|
TIM
Time type.
|
TOK
Token type.
|
UBY
Unsigned byte type.
|
UIN
Short type.
|
ULN
Unsigned long type.
|
URI
Any URI type.
|
USH
Unsigned Short type.
|
UTY
Any simple type.
|
YEA
Year type.
|
YMD
Year month duration type.
|
YMO
Year month type.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type.
|
Item |
cast(java.lang.Object o,
InputInfo ii)
Casts the specified Java object to the XQuery data type.
|
static AtomType |
find(QNm type,
boolean all)
Finds and returns the specified data type.
|
int |
id()
Returns a type id to differentiate all types.
|
boolean |
instanceOf(Type t)
Checks if the current type is an instance of the specified type.
|
boolean |
isDate()
Checks if the type refers to a
date or one of its sub-types. |
boolean |
isDuration()
Checks if the type refers to a
xs:duration or one of its sub-types. |
boolean |
isFunction()
Checks if the type refers to a function item.
|
boolean |
isMap()
Checks if the type refers to a map.
|
boolean |
isNode()
Checks if the type refers to a node.
|
boolean |
isNumber()
Checks if the type refers to a number.
|
boolean |
isString()
Checks if the type refers to an
xs:string or one of its sub-types. |
boolean |
isUntyped()
Checks if the type refers to an untyped item.
|
SeqType |
seqType()
Returns the sequence type of this data type.
|
byte[] |
string()
Returns the string representation of this type.
|
java.lang.String |
toString() |
static AtomType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AtomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AtomType ITEM
public static final AtomType UTY
public static final AtomType ATY
public static final AtomType AST
public static final AtomType AAT
public static final AtomType ATM
public static final AtomType STR
public static final AtomType NST
public static final AtomType TOK
public static final AtomType LAN
public static final AtomType NMT
public static final AtomType NAM
public static final AtomType NCN
public static final AtomType ID
public static final AtomType IDR
public static final AtomType ENT
public static final AtomType FLT
public static final AtomType DBL
public static final AtomType DEC
public static final AtomType PDC
public static final AtomType ITR
public static final AtomType NPI
public static final AtomType NIN
public static final AtomType LNG
public static final AtomType INT
public static final AtomType SHR
public static final AtomType BYT
public static final AtomType NNI
public static final AtomType ULN
public static final AtomType UIN
public static final AtomType USH
public static final AtomType UBY
public static final AtomType PIN
public static final AtomType DUR
public static final AtomType YMD
public static final AtomType DTD
public static final AtomType DTM
public static final AtomType DTS
public static final AtomType DAT
public static final AtomType TIM
public static final AtomType YMO
public static final AtomType YEA
public static final AtomType MDA
public static final AtomType DAY
public static final AtomType MON
public static final AtomType BLN
public static final AtomType BIN
public static final AtomType B64
public static final AtomType HEX
public static final AtomType URI
public static final AtomType QNM
public static final AtomType NOT
public static final AtomType EMP
public static final AtomType SEQ
public static final AtomType JAVA
public static AtomType[] values()
for (AtomType c : AtomType.values()) System.out.println(c);
public static AtomType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isNumber()
Typepublic boolean isString()
Typexs:string or one of its sub-types.public boolean isUntyped()
Typepublic boolean isDuration()
Typexs:duration or one of its sub-types.isDuration in interface Typepublic boolean isDate()
Typedate or one of its sub-types.public boolean isFunction()
TypeisFunction in interface Typepublic boolean isMap()
Typepublic byte[] string()
Typepublic Item cast(Item it, QueryContext ctx, InputInfo ii) throws QueryException
Typecast in interface Typeit - item to be convertedctx - query contextii - input infoQueryException - query exceptionpublic Item cast(java.lang.Object o, InputInfo ii) throws QueryException
Typecast in interface Typeo - Java objectii - input infoQueryException - query exceptionpublic SeqType seqType()
Typepublic final boolean instanceOf(Type t)
TypeinstanceOf in interface Typet - type to be checkedpublic final boolean isNode()
Typepublic int id()
Typepublic java.lang.String toString()