|
|||||||||
| 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.xquery.item.Type
public enum Type
Data Types.
| Enum Constant Summary | |
|---|---|
AAT
Untyped type. |
|
ATM
Untyped type. |
|
ATT
Attribute type. |
|
B6B
Base64Binary type. |
|
BLN
Boolean type. |
|
BYT
Byte type. |
|
COM
Comment type. |
|
DAT
Date type. |
|
DAY
Day type. |
|
DBL
Double type. |
|
DEC
Decimal type. |
|
DOC
Document type. |
|
DTD
Date type. |
|
DTM
DateTime type. |
|
DUR
Date type. |
|
ELM
Element type. |
|
EMP
Empty sequence type. |
|
ENT
Name type. |
|
FLT
Float type. |
|
HEX
HexBinary type. |
|
ID
ID type. |
|
IDR
IDREF type. |
|
INT
Int type. |
|
ITEM
Untyped type. |
|
ITR
Integer type. |
|
LAN
Language type. |
|
LNG
Long type. |
|
MDA
YearMonth type. |
|
MON
Month type. |
|
NAM
Name type. |
|
NCN
Name type. |
|
NIN
Negative integer type. |
|
NMT
NMTOKEN type. |
|
NNI
Negative integer type. |
|
NOD
Node type. |
|
NOT
NOTATION. |
|
NPI
Positive integer type. |
|
NST
Normalized String type. |
|
PI
PI type. |
|
PIN
Positive integer type. |
|
QNM
QName. |
|
SEQ
Sequence type. |
|
SHR
Short type. |
|
STR
String type. |
|
TIM
Time type. |
|
TOK
Token type. |
|
TXT
Text type. |
|
UBY
Short type. |
|
UIN
Short type. |
|
ULN
Short type. |
|
URI
URI type. |
|
USH
Short type. |
|
YEA
Year type. |
|
YMD
Date type. |
|
YMO
YearMonth type. |
|
| Field Summary | |
|---|---|
byte[] |
name
String representation. |
Type |
par
Parent type. |
byte[] |
uri
String representation. |
| Method Summary | |
|---|---|
abstract Item |
e(Item it,
XQContext ctx)
Evaluates the specified item and constructs a new item. |
static Type |
find(QNm type,
boolean nodes)
Finds and returns the specified data type. |
boolean |
instance(Type t)
Checks recursively if the specified type is an instance of the current type. |
static Type |
node(QNm type)
Finds and returns the specified node type. |
java.lang.String |
toString()
|
static Type |
valueOf(java.lang.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 AAT
public static final Type ATM
public static final Type ATT
public static final Type B6B
public static final Type BLN
public static final Type BYT
public static final Type COM
public static final Type DAT
public static final Type DAY
public static final Type DBL
public static final Type DEC
public static final Type DOC
public static final Type DTD
public static final Type DTM
public static final Type DUR
public static final Type ELM
public static final Type EMP
public static final Type ENT
public static final Type FLT
public static final Type HEX
public static final Type ID
public static final Type IDR
public static final Type INT
public static final Type ITEM
public static final Type ITR
public static final Type LAN
public static final Type LNG
public static final Type MDA
public static final Type MON
public static final Type NAM
public static final Type NCN
public static final Type NIN
public static final Type NMT
public static final Type NNI
public static final Type NOD
public static final Type NOT
public static final Type NPI
public static final Type NST
public static final Type PI
public static final Type PIN
public static final Type QNM
public static final Type SEQ
public static final Type SHR
public static final Type STR
public static final Type TIM
public static final Type TOK
public static final Type TXT
public static final Type UBY
public static final Type UIN
public static final Type ULN
public static final Type URI
public static final Type USH
public static final Type YEA
public static final Type YMD
public static final Type YMO
| Field Detail |
|---|
public final byte[] name
public final Type par
public final byte[] uri
| Method Detail |
|---|
public abstract Item e(Item it,
XQContext ctx)
throws XQException
it - item to be evaluatedctx - xquery context
XQException - evaluation exception
public static Type find(QNm type,
boolean nodes)
type - type as stringnodes - node types included
public boolean instance(Type t)
t - type to be checked
public static Type node(QNm type)
type - type as string
public java.lang.String toString()
toString in class java.lang.Enum<Type>public static Type 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 name
java.lang.NullPointerException - if the argument is nullpublic static Type[] values()
for (Type c : Type.values()) System.out.println(c);
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||