| Enum Constant and Description |
|---|
ATT
Attribute type.
|
COM
Comment type.
|
DEL
Document element type.
|
DOC
Document type.
|
ELM
Element type.
|
NOD
Node type.
|
NSP
Namespace type.
|
PI
PI type.
|
SCA
Schema-attribute.
|
SCE
Schema-element.
|
TXT
Text 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 NodeType |
find(QNm type)
Finds and returns the specified node 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 NodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeType NOD
public static final NodeType TXT
public static final NodeType PI
public static final NodeType ELM
public static final NodeType DOC
public static final NodeType DEL
public static final NodeType ATT
public static final NodeType COM
public static final NodeType NSP
public static final NodeType SCE
public static final NodeType SCA
public static NodeType[] values()
for (NodeType c : NodeType.values()) System.out.println(c);
public static NodeType 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 final boolean isNode()
Typepublic 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 final boolean isFunction()
TypeisFunction in interface Typepublic final boolean isMap()
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 int id()
Typepublic byte[] string()
Typepublic java.lang.String toString()