Package org.basex.query.value.type
Enum Class Type.ID
- All Implemented Interfaces:
Serializable,Comparable<Type.ID>,java.lang.constant.Constable
- Enclosing interface:
- Type
Type IDs for client/server communication.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionxs:anyAtomicType.xs:anySimpleType.xs:untypedAtomic.attribute().xs:anyType.xs:base64Binary.binary().xs:boolean.xs:byte.comment().xs:date.xs:gDay.xs:double.xs:decimal.document-node(element()).document-node().xs:dayTimeDuration.xs:dateTime.dateTimeStamp().xs:duration.element().xs:ENTITY.xs:float.function(*).xs:hexBinary.xs:ID.xs:IDREF.xs:int.item().xs:integer.java().xs:language.xs:long.xs:gMonthDay.xs:gMonth.xs:Name.xs:NCName.xs:negativeInteger.xs:NMTOKEN.xs:nonNegativeInteger.node().xs:NOTATION.xs:nonPositiveInteger.namespace-node().xs:normalizedString.xs:numeric.precisionDecimal().processing-instruction().xs:positiveInteger.xs:QName.schema-attribute().schema-element().xs:short.xs:string.xs:time.xs:token.text().xs:unsignedByte.xs:unsignedInt.xs:unsignedLong.xs:anyURI.xs:unsignedShort.xs:untyped.xs:gYear.xs:yearMonthDuration.xs:gYearMonth. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyteasByte()Returns the type ID.static Type.IDget(int id) Gets the specified ID.static TypegetType(int id) Gets the specified type instance.booleanIndicates if this type returns extended type information.static Type.IDReturns the enum constant of this class with the specified name.static Type.ID[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FUN
function(*). -
NOD
node(). -
TXT
text(). -
PI
processing-instruction(). -
ELM
element(). -
DOC
document-node(). -
DEL
document-node(element()). -
ATT
attribute(). -
COM
comment(). -
NSP
namespace-node(). -
SCE
schema-element(). -
SCA
schema-attribute(). -
ITEM
item(). -
UTY
xs:untyped. -
ATY
xs:anyType. -
AST
xs:anySimpleType. -
AAT
xs:anyAtomicType. -
ATM
xs:untypedAtomic. -
STR
xs:string. -
NST
xs:normalizedString. -
TOK
xs:token. -
LAN
xs:language. -
NMT
xs:NMTOKEN. -
NAM
xs:Name. -
NCN
xs:NCName. -
ID
xs:ID. -
IDR
xs:IDREF. -
ENT
xs:ENTITY. -
FLT
xs:float. -
DBL
xs:double. -
DEC
xs:decimal. -
PDC
precisionDecimal(). -
ITR
xs:integer. -
NPI
xs:nonPositiveInteger. -
NIN
xs:negativeInteger. -
LNG
xs:long. -
INT
xs:int. -
SHR
xs:short. -
BYT
xs:byte. -
NNI
xs:nonNegativeInteger. -
ULN
xs:unsignedLong. -
UIN
xs:unsignedInt. -
USH
xs:unsignedShort. -
UBY
xs:unsignedByte. -
PIN
xs:positiveInteger. -
DUR
xs:duration. -
YMD
xs:yearMonthDuration. -
DTD
xs:dayTimeDuration. -
DTM
xs:dateTime. -
DTS
dateTimeStamp(). -
DAT
xs:date. -
TIM
xs:time. -
YMO
xs:gYearMonth. -
YEA
xs:gYear. -
MDA
xs:gMonthDay. -
DAY
xs:gDay. -
MON
xs:gMonth. -
BLN
xs:boolean. -
BIN
binary(). -
B64
xs:base64Binary. -
HEX
xs:hexBinary. -
URI
xs:anyURI. -
QNM
xs:QName. -
NOT
xs:NOTATION. -
NUM
xs:numeric. -
JAVA
java().
-
-
Field Details
-
VALUES
Cached enums (faster).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asByte
public byte asByte()Returns the type ID. Also called by XQJ.- Returns:
- type ID
-
isExtended
public boolean isExtended()Indicates if this type returns extended type information.- Returns:
- result of check
-
get
Gets the specified ID.- Parameters:
id- id- Returns:
- type ID if found,
nullotherwise
-
getType
Gets the specified type instance.- Parameters:
id- id- Returns:
- corresponding type if found,
nullotherwise
-