public class TypeInfo extends Object
Purpose:Used to store meta data about JAXB 2.0 Annotated classes during schema and mapping generation processes.
Responsibilities:
AnnotationsProcessor
,
EnumTypeInfo
Constructor and Description |
---|
TypeInfo(Helper helper)
This constructor sets the Helper to be used throughout XML and Annotations
processing.
|
Modifier and Type | Method and Description |
---|---|
void |
addPackageLevelAdapterClass(JavaClass adapterClass,
JavaClass boundType)
Put a bound type class to adapter class entry in the Map.
|
void |
addProperty(String name,
Property property)
Put a Property in the Map of Properties for this TypeInfo.
|
String |
getAnyAttributePropertyName()
Return the name of the XmlAnyAttribute property, if one is set.
|
String |
getAnyElementPropertyName()
Return the name of the XmlAnyElement property, if one is set.
|
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.
|
String |
getElementRefsPropName()
Return the XmlElementRefs property name, if one has been set.
|
String |
getFactoryMethodName() |
String[] |
getFactoryMethodParamTypes() |
Property |
getIDProperty()
Return the TypeProperty 'idProperty'.
|
List<Property> |
getNonTransientPropertiesInPropOrder()
Return all non-transient properties that exist in the propOrder array.
|
String |
getObjectFactoryClassName() |
JavaClass |
getPackageLevelAdapterClass(JavaClass boundType)
Return the xmladapter class for a given bound type class.
|
JavaClass |
getPackageLevelAdapterClass(String boundTypeName)
Return the xmladapter class for a given bound type class name.
|
HashMap<String,JavaClass> |
getPackageLevelAdaptersByClass()
Return the Map of XmlAdapters for this TypeInfo.
|
HashMap<String,Property> |
getProperties()
Return the Map of Properties for this TypeInfo.
|
ArrayList<Property> |
getPropertyList() |
ArrayList<String> |
getPropertyNames() |
String[] |
getPropOrder() |
org.eclipse.persistence.internal.oxm.schema.model.Schema |
getSchema() |
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.
|
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.
|
List<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()
Indicates if this TypeInfo contains an XmlElementRefs property.
|
boolean |
hasRootElement() |
boolean |
isBinaryDataToBeInlined()
Indicates if all binary data types are to be inlined for this class.
|
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 |
isSetAnyAttributePropertyName()
Indicates if the name of the XmlAnyAttribute property has been set.
|
boolean |
isSetAnyElementPropertyName()
Indicates if the name of the XmlAnyElement property has been set.
|
boolean |
isSetPropOrder()
Indicates that the propOrder has been set, i.e.
|
boolean |
isSetXmlAccessOrder()
Indicates if xmlAccessOrder has been set, i.e.
|
boolean |
isSetXmlAccessType()
Indicates if xmlAccessType has been set, i.e.
|
boolean |
isSetXmlJavaTypeAdapter()
Indicates if an XmlJavaTypeAdapter has been set, i.e.
|
boolean |
isSetXmlRootElement()
Indicates if xmlRootElement has been set, i.e.
|
boolean |
isSetXmlSeeAlso()
Indicates if xmlSeeAlso has been set, i.e.
|
boolean |
isSetXmlTransient()
Indicates if XmlTransient is set.
|
boolean |
isSetXmlType()
Indicates if xmlType has been set, i.e.
|
boolean |
isSetXmlValueProperty()
Indicates if an xmlValueProperty is set on this TypeInfo, i.e.
|
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 |
setAnyAttributePropertyName(String anyAttributePropertyName)
Set the name of the XmlAnyAttribute property
|
void |
setAnyElementPropertyName(String anyElementPropertyName)
Set the name of the XmlAnyElement property
|
void |
setClassNamespace(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 |
setElementRefsPropertyName(String propName)
Set the XmlElementRefs property name.
|
void |
setFactoryMethodName(String factoryMethod) |
void |
setFactoryMethodParamTypes(String[] paramTypes) |
void |
setHasRootElement(boolean hasRoot) |
void |
setIDProperty(Property idProperty)
Sets the TypeProperty 'idProperty'.
|
void |
setInlineBinaryData(boolean isBinaryDataInlined)
Sets the flag that indicates if all binary data types are to
be inlined for this class.
|
void |
setMixed(boolean isMixed)
Set mixed content indicator
|
void |
setObjectFactoryClassName(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(ArrayList<Property> properties)
Set the Map of Properties for this TypeInfo.
|
void |
setPropOrder(String[] order) |
void |
setSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema) |
void |
setSchemaTypeName(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(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(List<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) |
public TypeInfo(Helper helper)
helper
- 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 String[] getPropOrder()
public boolean isSetPropOrder()
public void setPropOrder(String[] order)
public String getClassNamespace()
public void setClassNamespace(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 Property getIDProperty()
public HashMap<String,Property> getProperties()
public void addProperty(String name, Property property)
name
- property
- public void setIDProperty(Property idProperty)
public void setProperties(ArrayList<Property> properties)
properties
- public void orderProperties()
public boolean isEnumerationType()
public boolean isIDSet()
public String getSchemaTypeName()
public void setSchemaTypeName(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(String boundTypeName)
boundType
- public HashMap<String,JavaClass> getPackageLevelAdaptersByClass()
public void addPackageLevelAdapterClass(JavaClass adapterClass, JavaClass boundType)
adapterClass
- boundType
- public boolean hasRootElement()
public void setHasRootElement(boolean hasRoot)
public boolean hasElementRefs()
public String getElementRefsPropName()
public void setElementRefsPropertyName(String propName)
public String getObjectFactoryClassName()
public void setObjectFactoryClassName(String factoryClass)
public String getFactoryMethodName()
public void setFactoryMethodName(String factoryMethod)
public String[] getFactoryMethodParamTypes()
public void setFactoryMethodParamTypes(String[] paramTypes)
public boolean isSetXmlValueProperty()
public Property getXmlValueProperty()
public void setXmlValueProperty(Property xmlValueProperty)
public boolean isTransient()
public void setTransient(boolean isTransient)
public List<Property> getNonTransientPropertiesInPropOrder()
public boolean isSetXmlTransient()
public void setXmlTransient(boolean isTransient)
isTransient
- public boolean isSetXmlSeeAlso()
public List<String> getXmlSeeAlso()
public void setXmlSeeAlso(List<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 isSetXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public XmlJavaTypeAdapter getXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public void setXmlJavaTypeAdapter(XmlJavaTypeAdapter xmlJavaTypeAdapter)
xmlJavaTypeAdapter
- XmlJavaTypeAdapter
public String getXmlCustomizer()
DescriptorCustomizer
public void setXmlCustomizer(String xmlCustomizerClassName)
xmlCustomizer
- DescriptorCustomizer
public boolean isSetAnyElementPropertyName()
public String getAnyElementPropertyName()
public void setAnyElementPropertyName(String anyElementPropertyName)
anyElementPropertyName
- public boolean isSetAnyAttributePropertyName()
public String getAnyAttributePropertyName()
public void setAnyAttributePropertyName(String anyAttributePropertyName)
anyAttributePropertyName
- public boolean isBinaryDataToBeInlined()
public void setInlineBinaryData(boolean isBinaryDataInlined)
isBinaryDataInlined
-