org.basex.query.value.type
Enum Type.ID

java.lang.Object
  extended by java.lang.Enum<Type.ID>
      extended by org.basex.query.value.type.Type.ID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Type.ID>
Enclosing interface:
Type

public static enum Type.ID
extends java.lang.Enum<Type.ID>

Type IDs for client/server communication.


Enum Constant Summary
AAT
          xs:anyAtomicType.
AST
          xs:anySimpleType.
ATM
          xs:untypedAtomic.
ATT
          attribute().
ATY
          xs:anyType.
B64
          xs:base64Binary.
BIN
          binary().
BLN
          xs:boolean.
BYT
          xs:byte.
COM
          comment().
DAT
          xs:date.
DAY
          xs:gDay.
DBL
          xs:double.
DEC
          xs:decimal.
DEL
          document-node(element()).
DOC
          document-node().
DTD
          xs:dayTimeDuration.
DTM
          xs:dateTime.
DTS
          dateTimeStamp().
DUR
          xs:duration.
ELM
          element().
ENT
          xs:ENTITY.
FLT
          xs:float.
FUN
          function(*).
HEX
          xs:hexBinary.
ID
          xs:ID.
IDR
          xs:IDREF.
INT
          xs:int.
ITEM
          item().
ITR
          xs:integer.
JAVA
          java().
LAN
          xs:language.
LNG
          xs:long.
MDA
          xs:gMonthDay.
MON
          xs:gMonth.
NAM
          xs:Name.
NCN
          xs:NCName.
NIN
          xs:negativeInteger.
NMT
          xs:NMTOKEN.
NNI
          xs:nonNegativeInteger.
NOD
          node().
NOT
          xs:NOTATION.
NPI
          xs:nonPositiveInteger.
NSP
          namespace-node().
NST
          xs:normalizedString.
PDC
          precisionDecimal().
PI
          processing-instruction().
PIN
          xs:positiveInteger.
QNM
          xs:QName.
SCA
          schema-attribute().
SCE
          schema-element().
SHR
          xs:short.
STR
          xs:string.
TIM
          xs:time.
TOK
          xs:token.
TXT
          text().
UBY
          xs:unsignedByte.
UIN
          xs:unsignedInt.
ULN
          xs:unsignedLong.
URI
          xs:anyURI.
USH
          xs:unsignedShort.
UTY
          xs:untyped.
YEA
          xs:gYear.
YMD
          xs:yearMonthDuration.
YMO
          xs:gYearMonth.
 
Field Summary
static Type.ID[] VALUES
          Cached enums (faster).
 
Method Summary
 byte asByte()
          returns the type ID as a byte.
static Type.ID get(byte b)
          Gets the ID for the given byte value.
static Type getType(byte b)
          Gets the type instance for the given ID.
static Type.ID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Type.ID[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FUN

public static final Type.ID FUN
function(*).


NOD

public static final Type.ID NOD
node().


TXT

public static final Type.ID TXT
text().


PI

public static final Type.ID PI
processing-instruction().


ELM

public static final Type.ID ELM
element().


DOC

public static final Type.ID DOC
document-node().


DEL

public static final Type.ID DEL
document-node(element()).


ATT

public static final Type.ID ATT
attribute().


COM

public static final Type.ID COM
comment().


NSP

public static final Type.ID NSP
namespace-node().


SCE

public static final Type.ID SCE
schema-element().


SCA

public static final Type.ID SCA
schema-attribute().


ITEM

public static final Type.ID ITEM
item().


UTY

public static final Type.ID UTY
xs:untyped.


ATY

public static final Type.ID ATY
xs:anyType.


AST

public static final Type.ID AST
xs:anySimpleType.


AAT

public static final Type.ID AAT
xs:anyAtomicType.


ATM

public static final Type.ID ATM
xs:untypedAtomic.


STR

public static final Type.ID STR
xs:string.


NST

public static final Type.ID NST
xs:normalizedString.


TOK

public static final Type.ID TOK
xs:token.


LAN

public static final Type.ID LAN
xs:language.


NMT

public static final Type.ID NMT
xs:NMTOKEN.


NAM

public static final Type.ID NAM
xs:Name.


NCN

public static final Type.ID NCN
xs:NCName.


ID

public static final Type.ID ID
xs:ID.


IDR

public static final Type.ID IDR
xs:IDREF.


ENT

public static final Type.ID ENT
xs:ENTITY.


FLT

public static final Type.ID FLT
xs:float.


DBL

public static final Type.ID DBL
xs:double.


DEC

public static final Type.ID DEC
xs:decimal.


PDC

public static final Type.ID PDC
precisionDecimal().


ITR

public static final Type.ID ITR
xs:integer.


NPI

public static final Type.ID NPI
xs:nonPositiveInteger.


NIN

public static final Type.ID NIN
xs:negativeInteger.


LNG

public static final Type.ID LNG
xs:long.


INT

public static final Type.ID INT
xs:int.


SHR

public static final Type.ID SHR
xs:short.


BYT

public static final Type.ID BYT
xs:byte.


NNI

public static final Type.ID NNI
xs:nonNegativeInteger.


ULN

public static final Type.ID ULN
xs:unsignedLong.


UIN

public static final Type.ID UIN
xs:unsignedInt.


USH

public static final Type.ID USH
xs:unsignedShort.


UBY

public static final Type.ID UBY
xs:unsignedByte.


PIN

public static final Type.ID PIN
xs:positiveInteger.


DUR

public static final Type.ID DUR
xs:duration.


YMD

public static final Type.ID YMD
xs:yearMonthDuration.


DTD

public static final Type.ID DTD
xs:dayTimeDuration.


DTM

public static final Type.ID DTM
xs:dateTime.


DTS

public static final Type.ID DTS
dateTimeStamp().


DAT

public static final Type.ID DAT
xs:date.


TIM

public static final Type.ID TIM
xs:time.


YMO

public static final Type.ID YMO
xs:gYearMonth.


YEA

public static final Type.ID YEA
xs:gYear.


MDA

public static final Type.ID MDA
xs:gMonthDay.


DAY

public static final Type.ID DAY
xs:gDay.


MON

public static final Type.ID MON
xs:gMonth.


BLN

public static final Type.ID BLN
xs:boolean.


BIN

public static final Type.ID BIN
binary().


B64

public static final Type.ID B64
xs:base64Binary.


HEX

public static final Type.ID HEX
xs:hexBinary.


URI

public static final Type.ID URI
xs:anyURI.


QNM

public static final Type.ID QNM
xs:QName.


NOT

public static final Type.ID NOT
xs:NOTATION.


JAVA

public static final Type.ID JAVA
java().

Field Detail

VALUES

public static final Type.ID[] VALUES
Cached enums (faster).

Method Detail

values

public static Type.ID[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Type.ID c : Type.ID.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Type.ID valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

asByte

public byte asByte()
returns the type ID as a byte.

Returns:
type ID

get

public static Type.ID get(byte b)
Gets the ID for the given byte value.

Parameters:
b - byte
Returns:
type ID if found, null otherwise

getType

public static Type getType(byte b)
Gets the type instance for the given ID.

Parameters:
b - type ID
Returns:
corresponding type if found, null otherwise