|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jaxb.compiler.TypeInfo
public class TypeInfo
INTERNAL:
Purpose:Used to store meta data about JAXB 2.0 Annotated classes during schema and mapping generation processes.
Responsibilities:
AnnotationsProcessor
,
EnumTypeInfo
Constructor Summary | |
---|---|
TypeInfo(Helper helper)
This constructor sets the Helper to be used throughout XML and Annotations processing. |
Method Summary | |
---|---|
void |
addPackageLevelAdapterClass(JavaClass adapterClass,
JavaClass boundType)
Put a bound type class to adapter class entry in the Map. |
void |
addProperty(java.lang.String name,
Property property)
Put a Property in the Map of Properties for this TypeInfo. |
java.lang.String |
getClassNamespace()
|
org.eclipse.persistence.internal.oxm.schema.model.ComplexType |
getComplexType()
|
org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle |
getCompositor()
|
XMLDescriptor |
getDescriptor()
Return the XmlDescriptor set on this TypeInfo. |
java.lang.String |
getFactoryMethodName()
|
java.lang.String[] |
getFactoryMethodParamTypes()
|
Property |
getIDProperty()
Return the TypeProperty 'idProperty'. |
java.util.List<Property> |
getNonTransientPropertiesInPropOrder()
Return all non-transient properties that exist in the propOrder array. |
java.lang.String |
getObjectFactoryClassName()
|
JavaClass |
getPackageLevelAdapterClass(JavaClass boundType)
Return the xmladapter class for a given bound type class. |
JavaClass |
getPackageLevelAdapterClass(java.lang.String boundTypeName)
Return the xmladapter class for a given bound type class name. |
java.util.HashMap<java.lang.String,JavaClass> |
getPackageLevelAdaptersByClass()
Return the Map of XmlAdapters for this TypeInfo. |
java.util.HashMap<java.lang.String,Property> |
getProperties()
Return the Map of Properties for this TypeInfo. |
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()
Return the xmlAccessOrder for this TypeInfo. |
XmlAccessType |
getXmlAccessType()
Return the xmlAccessType for this TypeInfo. |
java.lang.String |
getXmlCustomizer()
Return the XmlCustomizer class name set on this TypeInfo, or null if none is set. |
XmlJavaTypeAdapter |
getXmlJavaTypeAdapter()
Return the xmlJavaTypeAdapter set on this Type. |
XmlRootElement |
getXmlRootElement()
Return the xmlRootElement set on this TypeInfo. |
java.util.List<java.lang.String> |
getXmlSeeAlso()
Return the List of XmlSeeAlso class names for this TypeInfo. |
XmlType |
getXmlType()
Return the xmlType set on this TypeInfo. |
Property |
getXmlValueProperty()
|
boolean |
hasElementRefs()
|
boolean |
hasRootElement()
|
boolean |
isAnyAttributeProperty()
Return isAnyAttributeProperty. |
boolean |
isComplexType()
|
boolean |
isEnumerationType()
|
boolean |
isIDSet()
Indicates if an @XmlID is set on a field/property. |
boolean |
isMixed()
Indicates mixed content |
boolean |
isPostBuilt()
Indicates if this TypeInfo has completed the postBuildTypeInfo phase of processing. |
boolean |
isPreBuilt()
Indicates if this TypeInfo has completed the preBuildTypeInfo phase of processing. |
boolean |
isSetPropOrder()
Indicates that the propOrder has been set, i.e. is non-null |
boolean |
isSetXmlAccessOrder()
Indicates if xmlAccessOrder has been set, i.e. is non-null |
boolean |
isSetXmlAccessType()
Indicates if xmlAccessType has been set, i.e. is non-null |
boolean |
isSetXmlJavaTypeAdapter()
Indicates if an XmlJavaTypeAdapter has been set, i.e. the xmlJavaTypeAdapter property is non-null. |
boolean |
isSetXmlRootElement()
Indicates if xmlRootElement has been set, i.e. is non-null |
boolean |
isSetXmlSeeAlso()
Indicates if xmlSeeAlso has been set, i.e. is non-null |
boolean |
isSetXmlTransient()
Indicates if XmlTransient is set. |
boolean |
isSetXmlType()
Indicates if xmlType has been set, i.e. is non-null |
boolean |
isTransient()
Indicates if the class represented by this TypeInfo is marked XmlTransient. |
void |
orderProperties()
Order the properties based on the XmlAccessOrder, if set. |
void |
setAnyAttributeProperty(boolean isAnyAttributeProperty)
Set the 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)
Set the XmlDescriptor on this TypeInfo. |
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)
Set indicator that this TypeInfo has completed the postBuildTypeInfo phase of processing. |
void |
setPreBuilt(boolean isPreBuilt)
Set indicator that this TypeInfo has completed the preBuildTypeInfo phase of processing. |
void |
setProperties(java.util.ArrayList<Property> properties)
Set the Map of Properties for this TypeInfo. |
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)
Used to indicate that the class represented by this TypeInfo is marked XmlTransient. |
void |
setXmlAccessOrder(XmlAccessOrder xmlAccessOrder)
Set the xmlAccessOrder for this TypeInfo. |
void |
setXmlAccessType(XmlAccessType xmlAccessType)
Set the xmlAccessType for this TypeInfo. |
void |
setXmlCustomizer(java.lang.String xmlCustomizerClassName)
Sets the XmlCustomizer class name on this TypeInfo. |
void |
setXmlJavaTypeAdapter(XmlJavaTypeAdapter xmlJavaTypeAdapter)
Set an XmlJavaTypeAdapter on this Type. |
void |
setXmlRootElement(XmlRootElement xmlRootElement)
Set the xmlRootElement for this TypeInfo. |
void |
setXmlSeeAlso(java.util.List<java.lang.String> xmlSeeAlso)
Set the List of XmlSeeAlso class names for this TypeInfo. |
void |
setXmlTransient(boolean isTransient)
Set the XmlTransient for this TypeInfo. |
void |
setXmlType(XmlType xmlType)
Set the xmlType for this TypeInfo. |
void |
setXmlValueProperty(Property xmlValueProperty)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeInfo(Helper helper)
helper
- Method Detail |
---|
public XMLDescriptor getDescriptor()
public void setDescriptor(XMLDescriptor desc)
desc
- public org.eclipse.persistence.internal.oxm.schema.model.ComplexType getComplexType()
public void setComplexType(org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
public org.eclipse.persistence.internal.oxm.schema.model.SimpleType getSimpleType()
public void setSimpleType(org.eclipse.persistence.internal.oxm.schema.model.SimpleType type)
public java.lang.String[] getPropOrder()
public boolean isSetPropOrder()
public void setPropOrder(java.lang.String[] order)
public java.lang.String getClassNamespace()
public void setClassNamespace(java.lang.String namespace)
public boolean isComplexType()
public boolean isMixed()
public void setMixed(boolean isMixed)
public org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle getCompositor()
public void setCompositor(org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle)
public java.util.ArrayList<java.lang.String> getPropertyNames()
public Property getIDProperty()
public java.util.HashMap<java.lang.String,Property> getProperties()
public void addProperty(java.lang.String name, Property property)
name
- property
- public void setIDProperty(Property idProperty)
public void setProperties(java.util.ArrayList<Property> properties)
properties
- public void orderProperties()
public boolean isEnumerationType()
public boolean isIDSet()
public java.util.ArrayList<Property> getPropertyList()
public java.lang.String getSchemaTypeName()
public void setSchemaTypeName(java.lang.String typeName)
public void setSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema)
public org.eclipse.persistence.internal.oxm.schema.model.Schema getSchema()
public JavaClass getPackageLevelAdapterClass(JavaClass boundType)
boundType
-
public JavaClass getPackageLevelAdapterClass(java.lang.String boundTypeName)
boundType
-
public java.util.HashMap<java.lang.String,JavaClass> getPackageLevelAdaptersByClass()
public void addPackageLevelAdapterClass(JavaClass adapterClass, JavaClass boundType)
adapterClass
- boundType
- public boolean hasRootElement()
public void setHasRootElement(boolean hasRoot)
public boolean hasElementRefs()
public void setHasElementRefs(boolean hasRefs)
public java.lang.String getObjectFactoryClassName()
public void setObjectFactoryClassName(java.lang.String factoryClass)
public java.lang.String getFactoryMethodName()
public void setFactoryMethodName(java.lang.String factoryMethod)
public java.lang.String[] getFactoryMethodParamTypes()
public void setFactoryMethodParamTypes(java.lang.String[] paramTypes)
public Property getXmlValueProperty()
public void setXmlValueProperty(Property xmlValueProperty)
public boolean isTransient()
public void setTransient(boolean isTransient)
public java.util.List<Property> getNonTransientPropertiesInPropOrder()
public boolean isSetXmlTransient()
public void setXmlTransient(boolean isTransient)
isTransient
- public boolean isSetXmlSeeAlso()
public java.util.List<java.lang.String> getXmlSeeAlso()
public void setXmlSeeAlso(java.util.List<java.lang.String> xmlSeeAlso)
xmlSeeAlso
- public boolean isSetXmlRootElement()
public XmlRootElement getXmlRootElement()
public void setXmlRootElement(XmlRootElement xmlRootElement)
xmlRootElement
- public boolean isSetXmlType()
public XmlType getXmlType()
public void setXmlType(XmlType xmlType)
xmlType
- public boolean isSetXmlAccessType()
public XmlAccessType getXmlAccessType()
public void setXmlAccessType(XmlAccessType xmlAccessType)
xmlAccessType
- public boolean isSetXmlAccessOrder()
public XmlAccessOrder getXmlAccessOrder()
public void setXmlAccessOrder(XmlAccessOrder xmlAccessOrder)
xmlAccessOrder
- public boolean isPreBuilt()
public void setPreBuilt(boolean isPreBuilt)
public boolean isPostBuilt()
public void setPostBuilt(boolean isPostBuilt)
public boolean isAnyAttributeProperty()
public void setAnyAttributeProperty(boolean isAnyAttributeProperty)
isAnyAttributeProperty
- public boolean isSetXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public XmlJavaTypeAdapter getXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public void setXmlJavaTypeAdapter(XmlJavaTypeAdapter xmlJavaTypeAdapter)
xmlJavaTypeAdapter
- XmlJavaTypeAdapter
public java.lang.String getXmlCustomizer()
DescriptorCustomizer
public void setXmlCustomizer(java.lang.String xmlCustomizerClassName)
xmlCustomizer
- DescriptorCustomizer
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |