com.sun.xml.fastinfoset.types
Enum XSDataType

java.lang.Object
  extended by java.lang.Enum<XSDataType>
      extended by com.sun.xml.fastinfoset.types.XSDataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XSDataType>

public enum XSDataType
extends java.lang.Enum<XSDataType>

Enumeration of XS data types.

Author:
Paul.Sandoz@Sun.Com

Enum Constant Summary
_UNSPECIFIED_
           
ANYSIMPLETYPE
           
ANYTYPE
           
ANYURI
           
BASE64BINARY
           
BOOLEAN
           
BYTE
           
DATE
           
DATETIME
           
DECIMAL
           
DOUBLE
           
DURATION
           
ENTITIES
           
ENTITY
           
FLOAT
           
GDAY
           
GMONTH
           
GMONTHDAY
           
GYEAR
           
GYEARMONTH
           
HEXBINARY
           
ID
           
IDREF
           
IDREFS
           
INT
           
INTEGER
           
LANGUAGE
           
LONG
           
NAME
           
NCNAME
           
NEGATIVEINTEGER
           
NMTOKEN
           
NMTOKENS
           
NONNEGATIVEINTEGER
           
NONPOSITIVEINTEGER
           
NORMALIZEDSTRING
           
NOTATION
           
POSITIVEINTEGER
           
QNAME
           
SHORT
           
STRING
           
TIME
           
TOKEN
           
UNSIGNEDBYTE
           
UNSIGNEDINT
           
UNSIGNEDLONG
           
UNSIGNEDSHORT
           
 
Field Summary
 java.lang.String alphabet
           
 BuiltInEncodingAlgorithm encodingAlgorithm
           
 int encodingAlgorithmId
           
 
Method Summary
static XSDataType create(java.lang.String s)
           
static XSDataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XSDataType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

_UNSPECIFIED_

public static final XSDataType _UNSPECIFIED_

ANYTYPE

public static final XSDataType ANYTYPE

ANYSIMPLETYPE

public static final XSDataType ANYSIMPLETYPE

DURATION

public static final XSDataType DURATION

DATETIME

public static final XSDataType DATETIME

TIME

public static final XSDataType TIME

DATE

public static final XSDataType DATE

GYEARMONTH

public static final XSDataType GYEARMONTH

GYEAR

public static final XSDataType GYEAR

GMONTHDAY

public static final XSDataType GMONTHDAY

GDAY

public static final XSDataType GDAY

GMONTH

public static final XSDataType GMONTH

STRING

public static final XSDataType STRING

NORMALIZEDSTRING

public static final XSDataType NORMALIZEDSTRING

TOKEN

public static final XSDataType TOKEN

LANGUAGE

public static final XSDataType LANGUAGE

NAME

public static final XSDataType NAME

NCNAME

public static final XSDataType NCNAME

ID

public static final XSDataType ID

IDREF

public static final XSDataType IDREF

IDREFS

public static final XSDataType IDREFS

ENTITY

public static final XSDataType ENTITY

ENTITIES

public static final XSDataType ENTITIES

NMTOKEN

public static final XSDataType NMTOKEN

NMTOKENS

public static final XSDataType NMTOKENS

BOOLEAN

public static final XSDataType BOOLEAN

BASE64BINARY

public static final XSDataType BASE64BINARY

HEXBINARY

public static final XSDataType HEXBINARY

FLOAT

public static final XSDataType FLOAT

DECIMAL

public static final XSDataType DECIMAL

INTEGER

public static final XSDataType INTEGER

NONPOSITIVEINTEGER

public static final XSDataType NONPOSITIVEINTEGER

NEGATIVEINTEGER

public static final XSDataType NEGATIVEINTEGER

LONG

public static final XSDataType LONG

INT

public static final XSDataType INT

SHORT

public static final XSDataType SHORT

BYTE

public static final XSDataType BYTE

NONNEGATIVEINTEGER

public static final XSDataType NONNEGATIVEINTEGER

UNSIGNEDLONG

public static final XSDataType UNSIGNEDLONG

UNSIGNEDINT

public static final XSDataType UNSIGNEDINT

UNSIGNEDSHORT

public static final XSDataType UNSIGNEDSHORT

UNSIGNEDBYTE

public static final XSDataType UNSIGNEDBYTE

POSITIVEINTEGER

public static final XSDataType POSITIVEINTEGER

DOUBLE

public static final XSDataType DOUBLE

ANYURI

public static final XSDataType ANYURI

QNAME

public static final XSDataType QNAME

NOTATION

public static final XSDataType NOTATION
Field Detail

encodingAlgorithmId

public final int encodingAlgorithmId

encodingAlgorithm

public final BuiltInEncodingAlgorithm encodingAlgorithm

alphabet

public final java.lang.String alphabet
Method Detail

values

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

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

valueOf

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

create

public static XSDataType create(java.lang.String s)