Enum Class Type.ID

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

public static enum Type.ID extends Enum<Type.ID>
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 Constants
    Enum Constant
    Description
    xs: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
    Modifier and Type
    Field
    Description
    static final Type.ID[]
    Cached enums (faster).
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the type ID.
    static Type.ID
    get(int id)
    Gets the specified ID.
    static Type
    getType(int id)
    Gets the specified type instance.
    boolean
    Indicates if this type returns extended type information.
    static Type.ID
    Returns the enum constant of this class with the specified name.
    static Type.ID[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
    • NUM

      public static final Type.ID NUM
      xs:numeric.
    • JAVA

      public static final Type.ID JAVA
      java().
  • Field Details

    • VALUES

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

    • values

      public static Type.ID[] 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

      public static Type.ID valueOf(String name)
      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 name
      NullPointerException - 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

      public static Type.ID get(int id)
      Gets the specified ID.
      Parameters:
      id - id
      Returns:
      type ID if found, null otherwise
    • getType

      public static Type getType(int id)
      Gets the specified type instance.
      Parameters:
      id - id
      Returns:
      corresponding type if found, null otherwise