com.abra.j2xb.annotations.xmlAnnotations
Enum MoXmlBaseSimpleType

java.lang.Object
  extended by java.lang.Enum<MoXmlBaseSimpleType>
      extended by com.abra.j2xb.annotations.xmlAnnotations.MoXmlBaseSimpleType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MoXmlBaseSimpleType>

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

Defines built in XML simple types used by the MOXmlDerivedType annotation to specify the base XML simple type to use when mapping a property.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MOXmlDerivedType

Enum Constant Summary
derivedEnum
          XML boolean type, mapped to Java enumeration types.
xmlBase64binary
          XML base64Binary type, mapped to Java byte[].
xmlBoolean
          XML boolean type, mapped to Java Boolean.
xmlByte
          XML byte type, mapped to Java Byte.
xmlDate
          XML date type, mapped to Java Calendar, Date or Date.
xmlDatetime
          XML dateTime type, mapped to Java Calendar.
xmlDecimal
          XML decimal type, mapped to Java BigDecimal.
xmlDouble
          XML double type, mapped to Java Double.
xmlEntity
          XML ENTITY type, mapped to Java String.
xmlFloat
          XML float type, mapped to Java Float.
xmlGDay
          XML gDay type, mapped to Java Calendar.
xmlGMonth
          XML gMonth type, mapped to Java Calendar.
xmlGMonthDay
          XML gMonthDay type, mapped to Java Calendar.
xmlGYear
          XML gYear type, mapped to Java Calendar.
xmlGYearMonth
          XML gYearMonth type, mapped to Java Calendar.
xmlHexBinary
          XML hexBinary type, mapped to Java byte[].
xmlID
          XML ID type, mapped to Java String.
xmlIDRef
          XML IDREF type, mapped to Java String.
xmlInt
          XML int type, mapped to Java Integer.
xmlInteger
          XML integer type, mapped to Java BigInteger.
xmlLanguage
          XML language type, mapped to Java String.
xmlLong
          XML long type, mapped to Java Long.
xmlName
          XML Name type, mapped to Java String.
xmlNCName
          XML NCName type, mapped to Java String.
xmlNegativeInteger
          XML negativeInteger type, mapped to Java BigInteger.
xmlNMToken
          XML NMTOKEN type, mapped to Java String.
xmlNonNegativeInteger
          XML nonNegativeInteger type, mapped to Java BigInteger.
xmlNonPositiveInteger
          XML nonPositiveInteger type, mapped to Java BigInteger.
xmlNormalizedString
          XML normalizedString type, mapped to Java String.
xmlNotSpecified
           
xmlPositiveInteger
          XML positiveInteger type, mapped to Java BigInteger.
xmlQName
          XML QName type, mapped to Java QName.
xmlShort
          XML short type, mapped to Java Short.
xmlString
          XML string type, mapped to Java String.
xmlTime
          XML time type, mapped to Java Calendar, Time.
xmlToken
          XML token type, mapped to Java String.
xmlUnsignedByte
          XML unsignedByte type, mapped to Java Short.
xmlUnsignedInt
          XML unsignedInt type, mapped to Java Long.
xmlUnsignedLong
          XML unsignedLong type, mapped to Java BigInteger.
xmlUnsignedShort
          XML unsignedShort type, mapped to Java Integer.
 
Method Summary
 MoXmlBaseSimpleType getBaseType()
           
 java.lang.String getXmlTypeName()
           
static MoXmlBaseSimpleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MoXmlBaseSimpleType[] 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

xmlDecimal

public static final MoXmlBaseSimpleType xmlDecimal
XML decimal type, mapped to Java BigDecimal.


xmlFloat

public static final MoXmlBaseSimpleType xmlFloat
XML float type, mapped to Java Float.


xmlDouble

public static final MoXmlBaseSimpleType xmlDouble
XML double type, mapped to Java Double.


xmlBoolean

public static final MoXmlBaseSimpleType xmlBoolean
XML boolean type, mapped to Java Boolean.


derivedEnum

public static final MoXmlBaseSimpleType derivedEnum
XML boolean type, mapped to Java enumeration types.


xmlQName

public static final MoXmlBaseSimpleType xmlQName
XML QName type, mapped to Java QName.


xmlString

public static final MoXmlBaseSimpleType xmlString
XML string type, mapped to Java String.


xmlNormalizedString

public static final MoXmlBaseSimpleType xmlNormalizedString
XML normalizedString type, mapped to Java String.


xmlToken

public static final MoXmlBaseSimpleType xmlToken
XML token type, mapped to Java String.


xmlLanguage

public static final MoXmlBaseSimpleType xmlLanguage
XML language type, mapped to Java String.


xmlName

public static final MoXmlBaseSimpleType xmlName
XML Name type, mapped to Java String.


xmlNCName

public static final MoXmlBaseSimpleType xmlNCName
XML NCName type, mapped to Java String.


xmlID

public static final MoXmlBaseSimpleType xmlID
XML ID type, mapped to Java String.


xmlIDRef

public static final MoXmlBaseSimpleType xmlIDRef
XML IDREF type, mapped to Java String.


xmlEntity

public static final MoXmlBaseSimpleType xmlEntity
XML ENTITY type, mapped to Java String.


xmlNMToken

public static final MoXmlBaseSimpleType xmlNMToken
XML NMTOKEN type, mapped to Java String.


xmlInteger

public static final MoXmlBaseSimpleType xmlInteger
XML integer type, mapped to Java BigInteger.


xmlNonPositiveInteger

public static final MoXmlBaseSimpleType xmlNonPositiveInteger
XML nonPositiveInteger type, mapped to Java BigInteger.


xmlNonNegativeInteger

public static final MoXmlBaseSimpleType xmlNonNegativeInteger
XML nonNegativeInteger type, mapped to Java BigInteger.


xmlPositiveInteger

public static final MoXmlBaseSimpleType xmlPositiveInteger
XML positiveInteger type, mapped to Java BigInteger.


xmlNegativeInteger

public static final MoXmlBaseSimpleType xmlNegativeInteger
XML negativeInteger type, mapped to Java BigInteger.


xmlLong

public static final MoXmlBaseSimpleType xmlLong
XML long type, mapped to Java Long.


xmlUnsignedLong

public static final MoXmlBaseSimpleType xmlUnsignedLong
XML unsignedLong type, mapped to Java BigInteger.


xmlInt

public static final MoXmlBaseSimpleType xmlInt
XML int type, mapped to Java Integer.


xmlUnsignedInt

public static final MoXmlBaseSimpleType xmlUnsignedInt
XML unsignedInt type, mapped to Java Long.


xmlShort

public static final MoXmlBaseSimpleType xmlShort
XML short type, mapped to Java Short.


xmlUnsignedShort

public static final MoXmlBaseSimpleType xmlUnsignedShort
XML unsignedShort type, mapped to Java Integer.


xmlByte

public static final MoXmlBaseSimpleType xmlByte
XML byte type, mapped to Java Byte.


xmlUnsignedByte

public static final MoXmlBaseSimpleType xmlUnsignedByte
XML unsignedByte type, mapped to Java Short.


xmlDatetime

public static final MoXmlBaseSimpleType xmlDatetime
XML dateTime type, mapped to Java Calendar.


xmlDate

public static final MoXmlBaseSimpleType xmlDate
XML date type, mapped to Java Calendar, Date or Date.


xmlTime

public static final MoXmlBaseSimpleType xmlTime
XML time type, mapped to Java Calendar, Time.


xmlGYear

public static final MoXmlBaseSimpleType xmlGYear
XML gYear type, mapped to Java Calendar.


xmlGYearMonth

public static final MoXmlBaseSimpleType xmlGYearMonth
XML gYearMonth type, mapped to Java Calendar.


xmlGMonth

public static final MoXmlBaseSimpleType xmlGMonth
XML gMonth type, mapped to Java Calendar.


xmlGMonthDay

public static final MoXmlBaseSimpleType xmlGMonthDay
XML gMonthDay type, mapped to Java Calendar.


xmlGDay

public static final MoXmlBaseSimpleType xmlGDay
XML gDay type, mapped to Java Calendar.


xmlHexBinary

public static final MoXmlBaseSimpleType xmlHexBinary
XML hexBinary type, mapped to Java byte[].


xmlBase64binary

public static final MoXmlBaseSimpleType xmlBase64binary
XML base64Binary type, mapped to Java byte[].


xmlNotSpecified

public static final MoXmlBaseSimpleType xmlNotSpecified
Method Detail

values

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

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

valueOf

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

getXmlTypeName

public java.lang.String getXmlTypeName()

getBaseType

public MoXmlBaseSimpleType getBaseType()


Copyright © 2008. All Rights Reserved.