EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.jaxb.compiler
Class EnumTypeInfo

java.lang.Object
  extended by org.eclipse.persistence.jaxb.compiler.TypeInfo
      extended by org.eclipse.persistence.jaxb.compiler.EnumTypeInfo

public class EnumTypeInfo
extends TypeInfo

INTERNAL:

Purpose:A specialized TypeInfo that stores additional information for a Java 5 Enumeration type.

Responsibilities:

See Also:
TypeInfo, org.eclipse.persistence.jaxb.AnnotationsProcessor
Author:
mmacivor

Constructor Summary
EnumTypeInfo(Helper helper)
           
 
Method Summary
 void addJavaFieldToXmlEnumValuePair(boolean override, java.lang.String fieldName, java.lang.String xmlEnumValue)
          Add a Java field name to XmlEnumValue pair.
 void addJavaFieldToXmlEnumValuePair(java.lang.String fieldName, java.lang.String xmlEnumValue)
          Add a Java field name to XmlEnumValue pair.
 java.lang.String getClassName()
           
 java.util.List<java.lang.String> getFieldNames()
           
 javax.xml.namespace.QName getRestrictionBase()
           
 java.util.List<java.lang.String> getXmlEnumValues()
           
 boolean isEnumerationType()
          Indicates if this type info represents an enumeration.
 void setClassName(java.lang.String className)
           
 void setRestrictionBase(javax.xml.namespace.QName restrictionBase)
           
 
Methods inherited from class org.eclipse.persistence.jaxb.compiler.TypeInfo
addPackageLevelAdapterClass, addProperty, addXmlKeyProperty, getAdditionalProperties, getAnyAttributePropertyName, getAnyElementPropertyName, getClassExtractorName, getClassNamespace, getComplexType, getCompositor, getDescriptor, getElementRefsPropName, getFactoryMethodName, getFactoryMethodParamTypes, getIDProperty, getJavaClassName, getNonTransientPropertiesInPropOrder, getObjectFactoryClassName, getOriginalProperties, getPackageLevelAdapterClass, getPackageLevelAdapterClass, getPackageLevelAdaptersByClass, getProperties, getPropertyList, getPropertyNames, getPropOrder, getSchema, getSchemaTypeName, getSimpleType, getUserProperties, getXmlAccessOrder, getXmlAccessType, getXmlCustomizer, getXmlDiscriminatorNode, getXmlDiscriminatorValue, getXmlJavaTypeAdapter, getXmlKeyProperties, getXmlRootElement, getXmlSeeAlso, getXmlType, getXmlValueProperty, hasElementRefs, hasRootElement, hasXmlKeyProperties, isAnonymousComplexType, isBinaryDataToBeInlined, isComplexType, isIDSet, isMixed, isPostBuilt, isPreBuilt, isSetAnyAttributePropertyName, isSetAnyElementPropertyName, isSetClassExtractorName, isSetPropOrder, isSetXmlAccessOrder, isSetXmlAccessType, isSetXmlDiscriminatorNode, isSetXmlDiscriminatorValue, isSetXmlJavaTypeAdapter, isSetXmlRootElement, isSetXmlSeeAlso, isSetXmlTransient, isSetXmlType, isSetXmlValueProperty, isTransient, orderProperties, setAnyAttributePropertyName, setAnyElementPropertyName, setClassExtractorName, setClassNamespace, setComplexType, setCompositor, setDescriptor, setElementRefsPropertyName, setFactoryMethodName, setFactoryMethodParamTypes, setHasRootElement, setIDProperty, setInlineBinaryData, setJavaClassName, setMixed, setObjectFactoryClassName, setPostBuilt, setPreBuilt, setProperties, setPropOrder, setSchema, setSchemaTypeName, setSimpleType, setTransient, setUserProperties, setXmlAccessOrder, setXmlAccessType, setXmlCustomizer, setXmlDiscriminatorNode, setXmlDiscriminatorValue, setXmlJavaTypeAdapter, setXmlRootElement, setXmlSeeAlso, setXmlTransient, setXmlType, setXmlValueProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumTypeInfo

public EnumTypeInfo(Helper helper)
Method Detail

isEnumerationType

public boolean isEnumerationType()
Description copied from class: TypeInfo
Indicates if this type info represents an enumeration. Since EnumTypeInfo is used for enum types, this method will always return false.

Overrides:
isEnumerationType in class TypeInfo
Returns:
false

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getRestrictionBase

public javax.xml.namespace.QName getRestrictionBase()

setRestrictionBase

public void setRestrictionBase(javax.xml.namespace.QName restrictionBase)

addJavaFieldToXmlEnumValuePair

public void addJavaFieldToXmlEnumValuePair(java.lang.String fieldName,
                                           java.lang.String xmlEnumValue)
Add a Java field name to XmlEnumValue pair.

Parameters:
fieldName -
xmlEnumValue -

addJavaFieldToXmlEnumValuePair

public void addJavaFieldToXmlEnumValuePair(boolean override,
                                           java.lang.String fieldName,
                                           java.lang.String xmlEnumValue)
Add a Java field name to XmlEnumValue pair. If an entry exists at the specified with the same fieldName, its value will be overridden. A value of true for 'override' will typically be used when performing overrides via XML metadata in XmlProcessor.

Parameters:
override -
fieldName -
xmlEnumValue -

getFieldNames

public java.util.List<java.lang.String> getFieldNames()

getXmlEnumValues

public java.util.List<java.lang.String> getXmlEnumValues()

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference