Skip navigation links
org.eclipse.persistence.jaxb
Class TypeMappingInfo
java.lang.Object
org.eclipse.persistence.jaxb.TypeMappingInfo
-
public class TypeMappingInfo
- extends java.lang.Object
Purpose: Provides a wrapper for a java type to be used when creating a JAXB context. This allows for additional information (such as parameter level annotations and element tag names) to be included in addition to the type itself.
- Author:
- mmacivor
Method Summary |
java.lang.annotation.Annotation[] |
getAnnotations()
Representing parameter level annotations that should be applied to this type. |
TypeMappingInfo.ElementScope |
getElementScope()
Indicates if a global element should be generated for this type. |
java.lang.reflect.Type |
getType()
The type to be bound. |
org.w3c.dom.Element |
getXmlElement()
Returns the xml-element as a Element which represents the parameter level annotations that should be applied to this type. |
javax.xml.namespace.QName |
getXmlTagName()
Root element name associated with this type; |
void |
setAnnotations(java.lang.annotation.Annotation[] annotations)
|
void |
setElementScope(TypeMappingInfo.ElementScope scope)
|
void |
setType(java.lang.reflect.Type t)
|
void |
setXmlElement(org.w3c.dom.Element xmlElement)
Set the xml-element Element representing parameter level annotations that should be applied to this type. |
void |
setXmlTagName(javax.xml.namespace.QName tagName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elementScope
private TypeMappingInfo.ElementScope elementScope
xmlTagName
private javax.xml.namespace.QName xmlTagName
type
private java.lang.reflect.Type type
annotations
private java.lang.annotation.Annotation[] annotations
xmlElement
private org.w3c.dom.Element xmlElement
TypeMappingInfo
public TypeMappingInfo()
getElementScope
public TypeMappingInfo.ElementScope getElementScope()
- Indicates if a global element should be generated for this type.
setElementScope
public void setElementScope(TypeMappingInfo.ElementScope scope)
getXmlTagName
public javax.xml.namespace.QName getXmlTagName()
- Root element name associated with this type;
setXmlTagName
public void setXmlTagName(javax.xml.namespace.QName tagName)
getType
public java.lang.reflect.Type getType()
- The type to be bound.
setType
public void setType(java.lang.reflect.Type t)
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Representing parameter level annotations that should be applied to this type.
setAnnotations
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
getXmlElement
public org.w3c.dom.Element getXmlElement()
- Returns the xml-element as a
Element
which represents the parameter level annotations that should be applied to this type.
-
- Returns:
Element
which represents the parameter level annotations that should be applied to this type if set, otherwise null
setXmlElement
public void setXmlElement(org.w3c.dom.Element xmlElement)
- Set the xml-element
Element
representing parameter level annotations that should be applied to this type. If xmlElement
is non-null, any annotations set on this instance will be completely ignored. The following XML representations of parameter level annotations will be supported:
- xml-element
- xml-attachment-ref
- xml-list
- xml-mime-type
- xml-java-type-adapter
-
- Parameters:
xmlElement
- Element
created from an xml-element
- See Also:
Element
, XmlElement
Skip navigation links