org.codehaus.enunciate.contract.jaxb.types
Enum KnownXmlType

java.lang.Object
  extended by java.lang.Enum<KnownXmlType>
      extended by org.codehaus.enunciate.contract.jaxb.types.KnownXmlType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KnownXmlType>, XmlType

public enum KnownXmlType
extends java.lang.Enum<KnownXmlType>
implements XmlType

Set of known xml types.

Author:
Ryan Heaton

Enum Constant Summary
ANY_SIMPLE_TYPE
           
ANY_TYPE
           
ANY_URI
           
BASE64_BINARY
           
BOOLEAN
           
BYTE
           
DATE
           
DATE_TIME
           
DECIMAL
           
DOUBLE
           
DURATION
           
ENTITIES
           
ENTITY
           
FLOAT
           
GDAY
           
GMONTH
           
GMONTH_DAY
           
GYEAR
           
GYEAR_MONTH
           
HEX_BINARY
           
ID
           
IDREF
           
IDREFS
           
INT
           
INTEGER
           
LANGUAGE
           
LONG
           
NAME
           
NCNAME
           
NEGATIVE_INTEGER
           
NMTOKEN
           
NMTOKENS
           
NONNEGATIVE_INTEGER
           
NONPOSITIVE_INTEGER
           
NORMALIZED_STRING
           
NOTATION
           
POSITIVE_INTEGER
           
QNAME
           
SHORT
           
STRING
           
SWAREF
           
TIME
           
TOKEN
           
UNSIGNED_BYTE
           
UNSIGNED_INT
           
UNSIGNED_LONG
           
UNSIGNED_SHORT
           
 
Method Summary
 java.lang.String getName()
          The name of the known type.
 java.lang.String getNamespace()
          The name of the known type.
 javax.xml.namespace.QName getQname()
          The qname of the known type.
 boolean isAnonymous()
          The definition of this type is never anonymous.
 boolean isSimple()
          The only known type that is not simple is xs:anyType.
static KnownXmlType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KnownXmlType[] 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

STRING

public static final KnownXmlType STRING

NORMALIZED_STRING

public static final KnownXmlType NORMALIZED_STRING

TOKEN

public static final KnownXmlType TOKEN

BASE64_BINARY

public static final KnownXmlType BASE64_BINARY

HEX_BINARY

public static final KnownXmlType HEX_BINARY

INTEGER

public static final KnownXmlType INTEGER

POSITIVE_INTEGER

public static final KnownXmlType POSITIVE_INTEGER

NEGATIVE_INTEGER

public static final KnownXmlType NEGATIVE_INTEGER

NONPOSITIVE_INTEGER

public static final KnownXmlType NONPOSITIVE_INTEGER

NONNEGATIVE_INTEGER

public static final KnownXmlType NONNEGATIVE_INTEGER

LONG

public static final KnownXmlType LONG

UNSIGNED_LONG

public static final KnownXmlType UNSIGNED_LONG

INT

public static final KnownXmlType INT

UNSIGNED_INT

public static final KnownXmlType UNSIGNED_INT

SHORT

public static final KnownXmlType SHORT

UNSIGNED_SHORT

public static final KnownXmlType UNSIGNED_SHORT

BYTE

public static final KnownXmlType BYTE

UNSIGNED_BYTE

public static final KnownXmlType UNSIGNED_BYTE

DECIMAL

public static final KnownXmlType DECIMAL

FLOAT

public static final KnownXmlType FLOAT

DOUBLE

public static final KnownXmlType DOUBLE

BOOLEAN

public static final KnownXmlType BOOLEAN

DURATION

public static final KnownXmlType DURATION

DATE_TIME

public static final KnownXmlType DATE_TIME

DATE

public static final KnownXmlType DATE

TIME

public static final KnownXmlType TIME

GYEAR

public static final KnownXmlType GYEAR

GYEAR_MONTH

public static final KnownXmlType GYEAR_MONTH

GMONTH

public static final KnownXmlType GMONTH

GMONTH_DAY

public static final KnownXmlType GMONTH_DAY

GDAY

public static final KnownXmlType GDAY

NAME

public static final KnownXmlType NAME

QNAME

public static final KnownXmlType QNAME

NCNAME

public static final KnownXmlType NCNAME

ANY_URI

public static final KnownXmlType ANY_URI

ANY_SIMPLE_TYPE

public static final KnownXmlType ANY_SIMPLE_TYPE

ANY_TYPE

public static final KnownXmlType ANY_TYPE

LANGUAGE

public static final KnownXmlType LANGUAGE

ID

public static final KnownXmlType ID

IDREF

public static final KnownXmlType IDREF

IDREFS

public static final KnownXmlType IDREFS

ENTITY

public static final KnownXmlType ENTITY

ENTITIES

public static final KnownXmlType ENTITIES

NOTATION

public static final KnownXmlType NOTATION

NMTOKEN

public static final KnownXmlType NMTOKEN

NMTOKENS

public static final KnownXmlType NMTOKENS

SWAREF

public static final KnownXmlType SWAREF
Method Detail

values

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

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

valueOf

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

getName

public java.lang.String getName()
The name of the known type.

Specified by:
getName in interface XmlType
Returns:
The name of the known type.

getNamespace

public java.lang.String getNamespace()
The name of the known type.

Specified by:
getNamespace in interface XmlType
Returns:
The name of the known type.

getQname

public javax.xml.namespace.QName getQname()
The qname of the known type.

Specified by:
getQname in interface XmlType
Returns:
The qname of the known type.

isAnonymous

public boolean isAnonymous()
The definition of this type is never anonymous.

Specified by:
isAnonymous in interface XmlType
Returns:
The definition of this type is never anonymous.

isSimple

public boolean isSimple()
The only known type that is not simple is xs:anyType.

Specified by:
isSimple in interface XmlType
Returns:
true