EclipseLink1.0 - 20080707 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)
           
 javax.xml.bind.annotation.XmlAccessType getAccessType()
           
 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()
           
 Property getIDProperty()
          Return the TypeProperty 'idProperty'.
 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()
           
 boolean hasElementRefs()
           
 boolean hasRootElement()
           
 boolean isComplexType()
           
 boolean isEnumerationType()
           
 boolean isIDSet()
          Indicates if an @XmlID is set on a field/property.
 void orderProperties(javax.xml.bind.annotation.XmlAccessOrder order)
           
 void setAccessType(javax.xml.bind.annotation.XmlAccessType type)
           
 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 setHasElementRefs(boolean hasRefs)
           
 void setHasRootElement(boolean hasRoot)
           
 void setIDProperty(Property idProperty)
          Sets the TypeProperty 'idProperty'.
 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)
           
 
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()

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()

getCompositor

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

setCompositor

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

getAccessType

public javax.xml.bind.annotation.XmlAccessType getAccessType()

setAccessType

public void setAccessType(javax.xml.bind.annotation.XmlAccessType type)

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(javax.xml.bind.annotation.XmlAccessOrder order)

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)

EclipseLink1.0 - 20080707 API Reference