EclipseLink 2.0.0_ 2.0.0.v20090713-r4647 API Reference

org.eclipse.persistence.jaxb.compiler
Class TypeInfo

java.lang.Object
  extended by org.eclipse.persistence.jaxb.compiler.TypeInfo
Direct Known Subclasses:
EnumTypeInfo

public class TypeInfo
extends java.lang.Object

INTERNAL:

Purpose:Used to store meta data about JAXB 2.0 Annotated classes during schema and mapping generation processes.

Responsibilities:

See Also:
AnnotationsProcessor, EnumTypeInfo
Author:
mmacivor
Since:
Oracle TopLink 11.1.1.0.0

Constructor Summary
TypeInfo(Helper helper)
           
 
Method Summary
 void addAdapterClass(JavaClass adapterClass, JavaClass boundType)
           
 void addAdapterClass(JavaClass adapterClass, java.lang.String boundTypeName)
           
 void addProperty(java.lang.String name, Property property)
           
 JavaClass getAdapterClass(JavaClass boundType)
           
 JavaClass getAdapterClass(java.lang.String boundTypeName)
           
 java.util.HashMap<java.lang.String,JavaClass> getAdaptersByClass()
           
 java.lang.String getClassNamespace()
           
 org.eclipse.persistence.internal.oxm.schema.model.ComplexType getComplexType()
           
 org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle getCompositor()
           
 XMLDescriptor getDescriptor()
           
 java.lang.String getFactoryMethodName()
           
 java.lang.String[] getFactoryMethodParamTypes()
           
 Property getIDProperty()
          Return the TypeProperty 'idProperty'.
 java.util.List<Property> getNonTransientPropertiesInPropOrder()
           
 java.lang.String getObjectFactoryClassName()
           
 java.util.HashMap<java.lang.String,Property> getProperties()
           
 java.util.ArrayList<Property> getPropertyList()
           
 java.util.ArrayList<java.lang.String> getPropertyNames()
           
 java.lang.String[] getPropOrder()
           
 org.eclipse.persistence.internal.oxm.schema.model.Schema getSchema()
           
 java.lang.String getSchemaTypeName()
           
 org.eclipse.persistence.internal.oxm.schema.model.SimpleType getSimpleType()
           
 XmlAccessOrder getXmlAccessOrder()
           
 XmlAccessType getXmlAccessType()
           
 XmlRootElement getXmlRootElement()
           
 java.util.List<java.lang.String> getXmlSeeAlso()
           
 XmlType getXmlType()
           
 Property getXmlValueProperty()
           
 boolean hasElementRefs()
           
 boolean hasRootElement()
           
 boolean isAnyAttributeProperty()
           
 boolean isComplexType()
           
 boolean isEnumerationType()
           
 boolean isIDSet()
          Indicates if an @XmlID is set on a field/property.
 boolean isMixed()
          Indicates mixed content
 boolean isPostBuilt()
           
 boolean isPreBuilt()
           
 boolean isSetPropOrder()
           
 boolean isSetXmlAccessOrder()
           
 boolean isSetXmlAccessType()
           
 boolean isSetXmlRootElement()
           
 boolean isSetXmlSeeAlso()
           
 boolean isSetXmlTransient()
           
 boolean isSetXmlType()
           
 boolean isTransient()
           
 void orderProperties()
          Order the properties based on the XmlAccessOrder, if set.
 void setAnyAttributeProperty(boolean isAnyAttributeProperty)
           
 void setClassNamespace(java.lang.String namespace)
           
 void setComplexType(org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
           
 void setCompositor(org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle)
           
 void setDescriptor(XMLDescriptor desc)
           
 void setFactoryMethodName(java.lang.String factoryMethod)
           
 void setFactoryMethodParamTypes(java.lang.String[] paramTypes)
           
 void setHasElementRefs(boolean hasRefs)
           
 void setHasRootElement(boolean hasRoot)
           
 void setIDProperty(Property idProperty)
          Sets the TypeProperty 'idProperty'.
 void setMixed(boolean isMixed)
          Set mixed content indicator
 void setObjectFactoryClassName(java.lang.String factoryClass)
           
 void setPostBuilt(boolean isPostBuilt)
           
 void setPreBuilt(boolean isPreBuilt)
           
 void setProperties(java.util.ArrayList<Property> properties)
           
 void setPropOrder(java.lang.String[] order)
           
 void setSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema)
           
 void setSchemaTypeName(java.lang.String typeName)
           
 void setSimpleType(org.eclipse.persistence.internal.oxm.schema.model.SimpleType type)
           
 void setTransient(boolean isTransient)
           
 void setXmlAccessOrder(XmlAccessOrder xmlAccessOrder)
           
 void setXmlAccessType(XmlAccessType xmlAccessType)
           
 void setXmlRootElement(XmlRootElement xmlRootElement)
           
 void setXmlSeeAlso(java.util.List<java.lang.String> xmlSeeAlso)
           
 void setXmlTransient(boolean isTransient)
           
 void setXmlType(XmlType xmlType)
           
 void setXmlValueProperty(Property xmlValueProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInfo

public TypeInfo(Helper helper)
Method Detail

getDescriptor

public XMLDescriptor getDescriptor()

setDescriptor

public void setDescriptor(XMLDescriptor desc)

getComplexType

public org.eclipse.persistence.internal.oxm.schema.model.ComplexType getComplexType()

setComplexType

public void setComplexType(org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)

getSimpleType

public org.eclipse.persistence.internal.oxm.schema.model.SimpleType getSimpleType()

setSimpleType

public void setSimpleType(org.eclipse.persistence.internal.oxm.schema.model.SimpleType type)

getPropOrder

public java.lang.String[] getPropOrder()

isSetPropOrder

public boolean isSetPropOrder()

setPropOrder

public void setPropOrder(java.lang.String[] order)

getClassNamespace

public java.lang.String getClassNamespace()

setClassNamespace

public void setClassNamespace(java.lang.String namespace)

isComplexType

public boolean isComplexType()

isMixed

public boolean isMixed()
Indicates mixed content


setMixed

public void setMixed(boolean isMixed)
Set mixed content indicator


getCompositor

public org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle getCompositor()

setCompositor

public void setCompositor(org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle)

getPropertyNames

public java.util.ArrayList<java.lang.String> getPropertyNames()

getIDProperty

public Property getIDProperty()
Return the TypeProperty 'idProperty'. This method will typically be used in conjunction with isIDSet method to determine if an @XmlID exists, and hence 'idProperty' is non-null.

Returns:

getProperties

public java.util.HashMap<java.lang.String,Property> getProperties()

addProperty

public void addProperty(java.lang.String name,
                        Property property)

setIDProperty

public void setIDProperty(Property idProperty)
Sets the TypeProperty 'idProperty'. This indicates that an @XmlID annotation is set on a given field/method.


setProperties

public void setProperties(java.util.ArrayList<Property> properties)

orderProperties

public void orderProperties()
Order the properties based on the XmlAccessOrder, if set.


isEnumerationType

public boolean isEnumerationType()

isIDSet

public boolean isIDSet()
Indicates if an @XmlID is set on a field/property. If so, the TypeProperty 'idProperty' will be non-null.

Returns:

getPropertyList

public java.util.ArrayList<Property> getPropertyList()

getSchemaTypeName

public java.lang.String getSchemaTypeName()

setSchemaTypeName

public void setSchemaTypeName(java.lang.String typeName)

setSchema

public void setSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema)

getSchema

public org.eclipse.persistence.internal.oxm.schema.model.Schema getSchema()

getAdapterClass

public JavaClass getAdapterClass(JavaClass boundType)

getAdapterClass

public JavaClass getAdapterClass(java.lang.String boundTypeName)

getAdaptersByClass

public java.util.HashMap<java.lang.String,JavaClass> getAdaptersByClass()

addAdapterClass

public void addAdapterClass(JavaClass adapterClass,
                            JavaClass boundType)

addAdapterClass

public void addAdapterClass(JavaClass adapterClass,
                            java.lang.String boundTypeName)

hasRootElement

public boolean hasRootElement()

setHasRootElement

public void setHasRootElement(boolean hasRoot)

hasElementRefs

public boolean hasElementRefs()

setHasElementRefs

public void setHasElementRefs(boolean hasRefs)

getObjectFactoryClassName

public java.lang.String getObjectFactoryClassName()

setObjectFactoryClassName

public void setObjectFactoryClassName(java.lang.String factoryClass)

getFactoryMethodName

public java.lang.String getFactoryMethodName()

setFactoryMethodName

public void setFactoryMethodName(java.lang.String factoryMethod)

getFactoryMethodParamTypes

public java.lang.String[] getFactoryMethodParamTypes()

setFactoryMethodParamTypes

public void setFactoryMethodParamTypes(java.lang.String[] paramTypes)

getXmlValueProperty

public Property getXmlValueProperty()

setXmlValueProperty

public void setXmlValueProperty(Property xmlValueProperty)

isTransient

public boolean isTransient()

setTransient

public void setTransient(boolean isTransient)

getNonTransientPropertiesInPropOrder

public java.util.List<Property> getNonTransientPropertiesInPropOrder()

isSetXmlTransient

public boolean isSetXmlTransient()

isSetXmlSeeAlso

public boolean isSetXmlSeeAlso()

setXmlTransient

public void setXmlTransient(boolean isTransient)

getXmlSeeAlso

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

setXmlSeeAlso

public void setXmlSeeAlso(java.util.List<java.lang.String> xmlSeeAlso)

isSetXmlRootElement

public boolean isSetXmlRootElement()

getXmlRootElement

public XmlRootElement getXmlRootElement()

setXmlRootElement

public void setXmlRootElement(XmlRootElement xmlRootElement)

isSetXmlType

public boolean isSetXmlType()

getXmlType

public XmlType getXmlType()

setXmlType

public void setXmlType(XmlType xmlType)

isSetXmlAccessType

public boolean isSetXmlAccessType()

getXmlAccessType

public XmlAccessType getXmlAccessType()

setXmlAccessType

public void setXmlAccessType(XmlAccessType xmlAccessType)

isSetXmlAccessOrder

public boolean isSetXmlAccessOrder()

getXmlAccessOrder

public XmlAccessOrder getXmlAccessOrder()

setXmlAccessOrder

public void setXmlAccessOrder(XmlAccessOrder xmlAccessOrder)

isPreBuilt

public boolean isPreBuilt()

setPreBuilt

public void setPreBuilt(boolean isPreBuilt)

isPostBuilt

public boolean isPostBuilt()

setPostBuilt

public void setPostBuilt(boolean isPostBuilt)

isAnyAttributeProperty

public boolean isAnyAttributeProperty()

setAnyAttributeProperty

public void setAnyAttributeProperty(boolean isAnyAttributeProperty)

EclipseLink 2.0.0_ 2.0.0.v20090713-r4647 API Reference