API

com.ibm.xml.xapi
Enum XTypeConstants.Type

java.lang.Object
  extended by java.lang.Enum<XTypeConstants.Type>
      extended by com.ibm.xml.xapi.XTypeConstants.Type
All Implemented Interfaces:
Serializable, Comparable<XTypeConstants.Type>
Enclosing interface:
XTypeConstants

public static enum XTypeConstants.Type
extends Enum<XTypeConstants.Type>

Enumerator of built-in types. COMPLEX is used for all non-atomic types.


Enum Constant Summary
ANYURI
           
BASE64BINARY
           
BOOLEAN
           
BYTE
           
COMPLEX
           
DATE
           
DATETIME
           
DAYTIMEDURATION
           
DECIMAL
           
DOUBLE
           
DURATION
           
ENTITY
           
FLOAT
           
GDAY
           
GMONTH
           
GMONTHDAY
           
GYEAR
           
GYEARMONTH
           
HEXBINARY
           
ID
           
IDREF
           
INT
           
INTEGER
           
LANGUAGE
           
LIST
           
LONG
           
NAME
           
NCNAME
           
NEGATIVEINTEGER
           
NMTOKEN
           
NONNEGATIVEINTEGER
           
NONPOSITIVEINTEGER
           
NORMALIZEDSTRING
           
NOTATION
           
POSITIVEINTEGER
           
QNAME
           
SHORT
           
STRING
           
TIME
           
TOKEN
           
UNION
           
UNSIGNEDBYTE
           
UNSIGNEDINT
           
UNSIGNEDLONG
           
UNSIGNEDSHORT
           
UNTYPEDATOMIC
           
YEARMONTHDURATION
           
 
Method Summary
static XTypeConstants.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XTypeConstants.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
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

BYTE

public static final XTypeConstants.Type BYTE

SHORT

public static final XTypeConstants.Type SHORT

INT

public static final XTypeConstants.Type INT

LONG

public static final XTypeConstants.Type LONG

FLOAT

public static final XTypeConstants.Type FLOAT

DOUBLE

public static final XTypeConstants.Type DOUBLE

BOOLEAN

public static final XTypeConstants.Type BOOLEAN

STRING

public static final XTypeConstants.Type STRING

DECIMAL

public static final XTypeConstants.Type DECIMAL

INTEGER

public static final XTypeConstants.Type INTEGER

HEXBINARY

public static final XTypeConstants.Type HEXBINARY

BASE64BINARY

public static final XTypeConstants.Type BASE64BINARY

ANYURI

public static final XTypeConstants.Type ANYURI

QNAME

public static final XTypeConstants.Type QNAME

NOTATION

public static final XTypeConstants.Type NOTATION

DATE

public static final XTypeConstants.Type DATE

TIME

public static final XTypeConstants.Type TIME

DATETIME

public static final XTypeConstants.Type DATETIME

GDAY

public static final XTypeConstants.Type GDAY

GMONTH

public static final XTypeConstants.Type GMONTH

GMONTHDAY

public static final XTypeConstants.Type GMONTHDAY

GYEAR

public static final XTypeConstants.Type GYEAR

GYEARMONTH

public static final XTypeConstants.Type GYEARMONTH

DURATION

public static final XTypeConstants.Type DURATION

DAYTIMEDURATION

public static final XTypeConstants.Type DAYTIMEDURATION

YEARMONTHDURATION

public static final XTypeConstants.Type YEARMONTHDURATION

NORMALIZEDSTRING

public static final XTypeConstants.Type NORMALIZEDSTRING

TOKEN

public static final XTypeConstants.Type TOKEN

LANGUAGE

public static final XTypeConstants.Type LANGUAGE

NAME

public static final XTypeConstants.Type NAME

NMTOKEN

public static final XTypeConstants.Type NMTOKEN

NCNAME

public static final XTypeConstants.Type NCNAME

ID

public static final XTypeConstants.Type ID

IDREF

public static final XTypeConstants.Type IDREF

ENTITY

public static final XTypeConstants.Type ENTITY

NONPOSITIVEINTEGER

public static final XTypeConstants.Type NONPOSITIVEINTEGER

NONNEGATIVEINTEGER

public static final XTypeConstants.Type NONNEGATIVEINTEGER

NEGATIVEINTEGER

public static final XTypeConstants.Type NEGATIVEINTEGER

POSITIVEINTEGER

public static final XTypeConstants.Type POSITIVEINTEGER

UNSIGNEDLONG

public static final XTypeConstants.Type UNSIGNEDLONG

UNSIGNEDINT

public static final XTypeConstants.Type UNSIGNEDINT

UNSIGNEDSHORT

public static final XTypeConstants.Type UNSIGNEDSHORT

UNSIGNEDBYTE

public static final XTypeConstants.Type UNSIGNEDBYTE

UNION

public static final XTypeConstants.Type UNION

LIST

public static final XTypeConstants.Type LIST

UNTYPEDATOMIC

public static final XTypeConstants.Type UNTYPEDATOMIC

COMPLEX

public static final XTypeConstants.Type COMPLEX
Method Detail

values

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

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

valueOf

public static XTypeConstants.Type valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

IBM Copyright 2004-2008