Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD

## org.basex.query.xquery.item
Enum Type

    java.lang.Object
      java.lang.Enum<Type>
          org.basex.query.xquery.item.Type

All Implemented Interfaces:
  java.io.Serializable, java.lang.Comparable<Type>

    public enum Type

extends java.lang.Enum<Type>

Data Types.

Author:
  Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

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

### AAT

    public static final Type AAT

  Untyped type.

### ATM

    public static final Type ATM

  Untyped type.

### ATT

    public static final Type ATT

  Attribute type.

### B6B

    public static final Type B6B

  Base64Binary type.

### BLN

    public static final Type BLN

  Boolean type.

### BYT

    public static final Type BYT

  Byte type.

### COM

    public static final Type COM

  Comment type.

### DAT

    public static final Type DAT

  Date type.

### DAY

    public static final Type DAY

  Day type.

### DBL

    public static final Type DBL

  Double type.

### DEC

    public static final Type DEC

  Decimal type.

### DOC

    public static final Type DOC

  Document type.

### DTD

    public static final Type DTD

  Date type.

### DTM

    public static final Type DTM

  DateTime type.

### DUR

    public static final Type DUR

  Date type.

### ELM

    public static final Type ELM

  Element type.

### EMP

    public static final Type EMP

  Empty sequence type.

### ENT

    public static final Type ENT

  Name type.

### FLT

    public static final Type FLT

  Float type.

### HEX

    public static final Type HEX

  HexBinary type.

### ID

    public static final Type ID

  ID type.

### IDR

    public static final Type IDR

  IDREF type.

### INT

    public static final Type INT

  Int type.

### ITEM

    public static final Type ITEM

  Untyped type.

### ITR

    public static final Type ITR

  Integer type.

### LAN

    public static final Type LAN

  Language type.

### LNG

    public static final Type LNG

  Long type.

### MDA

    public static final Type MDA

  YearMonth type.

### MON

    public static final Type MON

  Month type.

### NAM

    public static final Type NAM

  Name type.

### NCN

    public static final Type NCN

  Name type.

### NIN

    public static final Type NIN

  Negative integer type.

### NMT

    public static final Type NMT

  NMTOKEN type.

### NNI

    public static final Type NNI

  Negative integer type.

### NOD

    public static final Type NOD

  Node type.

### NOT

    public static final Type NOT

  NOTATION.

### NPI

    public static final Type NPI

  Positive integer type.

### NST

    public static final Type NST

  Normalized String type.

### PI

    public static final Type PI

  PI type.

### PIN

    public static final Type PIN

  Positive integer type.

### QNM

    public static final Type QNM

  QName.

### SEQ

    public static final Type SEQ

  Sequence type.

### SHR

    public static final Type SHR

  Short type.

### STR

    public static final Type STR

  String type.

### TIM

    public static final Type TIM

  Time type.

### TOK

    public static final Type TOK

  Token type.

### TXT

    public static final Type TXT

  Text type.

### UBY

    public static final Type UBY

  Short type.

### UIN

    public static final Type UIN

  Short type.

### ULN

    public static final Type ULN

  Short type.

### URI

    public static final Type URI

  URI type.

### USH

    public static final Type USH

  Short type.

### YEA

    public static final Type YEA

  Year type.

### YMD

    public static final Type YMD

  Date type.

### YMO

    public static final Type YMO

  YearMonth type.

Field Detail

### name

    public final byte[] name

  String representation.

### par

    public final Type par

  Parent type.

### uri

    public final byte[] uri

  String representation.

Method Detail

### e

    public abstract Item e(Item it,
                           XQContext ctx)
                    throws XQException

  Evaluates the specified item and constructs a new item.

  Parameters:
    `it` - item to be evaluated
    `ctx` - xquery context
  Returns:
    new item
  Throws:
    `XQException` - evaluation exception

### find

    public static Type find(QNm type,
                            boolean nodes)

  Finds and returns the specified data type.

  Parameters:
    `type` - type as string
    `nodes` - node types included
  Returns:
    type or null

### instance

    public boolean instance(Type t)

  Checks recursively if the specified type is an instance of the current type.

  Parameters:
    `t` - type to be checked
  Returns:
    result of check

### node

    public static Type node(QNm type)

  Finds and returns the specified node type.

  Parameters:
    `type` - type as string
  Returns:
    type or null

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Enum<Type>`

### valueOf

    public static Type 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

### values

    public static Type[] 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 c : Type.values())
          System.out.println(c);

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

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD