org.eclipse.persistence.jaxb
public class TypeMappingInfo extends 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.
Modifier and Type | Class and Description |
---|---|
static class |
TypeMappingInfo.ElementScope |
Constructor and Description |
---|
TypeMappingInfo() |
Modifier and Type | Method and Description |
---|---|
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.
|
Type |
getType()
The type to be bound.
|
Element |
getXmlElement()
Returns the xml-element as a
Element which represents the
parameter level annotations that should be applied to this type. |
QName |
getXmlTagName()
Root element name associated with this type;
|
void |
setAnnotations(Annotation[] annotations) |
void |
setElementScope(TypeMappingInfo.ElementScope scope) |
void |
setType(Type t) |
void |
setXmlElement(Element xmlElement)
Set the xml-element
Element representing parameter level
annotations that should be applied to this type. |
void |
setXmlTagName(QName tagName) |
public TypeMappingInfo.ElementScope getElementScope()
public void setElementScope(TypeMappingInfo.ElementScope scope)
public QName getXmlTagName()
public void setXmlTagName(QName tagName)
public Type getType()
public void setType(Type t)
public Annotation[] getAnnotations()
public void setAnnotations(Annotation[] annotations)
public Element getXmlElement()
Element
which represents the
parameter level annotations that should be applied to this type.Element
which represents the parameter level
annotations that should be applied to this type if set, otherwise
nullpublic void setXmlElement(Element xmlElement)
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:
xmlElement
- Element
created from an xml-elementElement
,
XmlElement