|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Type>
org.basex.query.item.Type
public enum Type
XQuery data types.
Enum Constant Summary | |
---|---|
AAT
Any atomic type. |
|
ATM
Untyped Atomic type. |
|
ATT
Attribute type. |
|
B6B
Base64 binary type. |
|
BLN
Boolean type. |
|
BYT
Byte type. |
|
COM
Comment type. |
|
DAT
Date type. |
|
DAY
Day type. |
|
DBL
Double type. |
|
DEC
Decimal type. |
|
DEL
Document element type (required by XQJ API). |
|
DOC
Document type. |
|
DTD
Day time duration type. |
|
DTM
DateTime type. |
|
DUR
Duration type. |
|
ELM
Element 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. |
|
NOD
Node type. |
|
NOT
NOTATION Type. |
|
NPI
Non-positive integer type. |
|
NST
Normalized String type. |
|
PI
PI type. |
|
PIN
Positive integer type. |
|
QNM
QName Type. |
|
SEQ
Sequence type. |
|
SHR
Short type. |
|
STR
String type. |
|
TIM
Time type. |
|
TOK
Token type. |
|
TXT
Text type. |
|
UBY
Unsigned byte type. |
|
UIN
Short type. |
|
ULN
Unsigned long type. |
|
URI
Any URI type. |
|
USH
Unsigned Short type. |
|
YEA
Year type. |
|
YMD
Year month duration type. |
|
YMO
Year month type. |
Field Summary | |
---|---|
boolean |
dur
Duration flag. |
String |
name
String representation. |
boolean |
num
Number flag. |
Type |
par
Parent type. |
boolean |
str
String flag. |
boolean |
unt
Untyped flag. |
byte[] |
uri
URI representation. |
Method Summary | |
---|---|
Item |
e(Item it,
QueryContext ctx)
Constructs a new item from the specified item. |
Item |
e(Object o)
Constructs a new item from the specified Java object. |
static Type |
find(QNm type,
boolean nodes)
Finds and returns the specified data type. |
boolean |
instance(Type t)
Checks if the specified type is an instance of the current type. |
boolean |
node()
Checks if the type refers to a node. |
static Type |
node(QNm type)
Finds and returns the specified node type. |
Return |
returned()
Indicates the return type of an expression. |
String |
toString()
|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Type ITEM
public static final Type AAT
public static final Type ATM
public static final Type STR
public static final Type NST
public static final Type TOK
public static final Type LAN
public static final Type NMT
public static final Type NAM
public static final Type NCN
public static final Type ID
public static final Type IDR
public static final Type ENT
public static final Type FLT
public static final Type DBL
public static final Type DEC
public static final Type ITR
public static final Type NPI
public static final Type NIN
public static final Type LNG
public static final Type INT
public static final Type SHR
public static final Type BYT
public static final Type NNI
public static final Type ULN
public static final Type UIN
public static final Type USH
public static final Type UBY
public static final Type PIN
public static final Type DUR
public static final Type YMD
public static final Type DTD
public static final Type DTM
public static final Type DAT
public static final Type TIM
public static final Type YMO
public static final Type YEA
public static final Type MDA
public static final Type DAY
public static final Type MON
public static final Type BLN
public static final Type B6B
public static final Type HEX
public static final Type URI
public static final Type QNM
public static final Type NOT
public static final Type NOD
public static final Type TXT
public static final Type PI
public static final Type ELM
public static final Type DOC
public static final Type DEL
public static final Type ATT
public static final Type COM
public static final Type SEQ
public static final Type EMP
public static final Type JAVA
Field Detail |
---|
public final String name
public final byte[] uri
public final boolean num
public final Type par
public final boolean unt
public final boolean str
public final boolean dur
Method Detail |
---|
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Item e(Item it, QueryContext ctx) throws QueryException
it
- item to be convertedctx
- query context
QueryException
- query exceptionpublic Item e(Object o) throws QueryException
o
- Java object
QueryException
- query exceptionpublic boolean instance(Type t)
t
- type to be checked
public boolean node()
public Return returned()
public static Type find(QNm type, boolean nodes)
type
- type as stringnodes
- flag for including node types
public static Type node(QNm type)
type
- type as string
public String toString()
toString
in class Enum<Type>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |