| 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.
|
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() |
Item cast(Item it, QueryContext ctx, InputInfo ii) throws QueryException
it - item to be convertedctx - query contextii - input infoQueryException - query exceptionItem cast(java.lang.Object o, InputInfo ii) throws QueryException
o - Java objectii - input infoQueryException - query exceptionSeqType seqType()
boolean instanceOf(Type t)
t - type to be checkedboolean isNode()
boolean isNumber()
boolean isUntyped()
boolean isString()
xs:string or one of its sub-types.boolean isDuration()
xs:duration or one of its sub-types.boolean isDate()
date or one of its sub-types.boolean isFunction()
boolean isMap()
byte[] string()
int id()
java.lang.String toString()
toString in class java.lang.Object