|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.jaxb.TypeMappingInfo
public class TypeMappingInfo
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.
Nested Class Summary | |
---|---|
static class |
TypeMappingInfo.ElementScope
|
Constructor Summary | |
---|---|
TypeMappingInfo()
|
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; |
boolean |
isNillable()
Return if the global element will be marked as nillable |
void |
setAnnotations(java.lang.annotation.Annotation[] annotations)
|
void |
setElementScope(TypeMappingInfo.ElementScope scope)
|
void |
setNillable(boolean nillable)
Set if the global element should be marked as nillable |
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 |
Constructor Detail |
---|
public TypeMappingInfo()
Method Detail |
---|
public TypeMappingInfo.ElementScope getElementScope()
public void setElementScope(TypeMappingInfo.ElementScope scope)
public boolean isNillable()
public void setNillable(boolean nillable)
nillable
- public javax.xml.namespace.QName getXmlTagName()
public void setXmlTagName(javax.xml.namespace.QName tagName)
public java.lang.reflect.Type getType()
public void setType(java.lang.reflect.Type t)
public java.lang.annotation.Annotation[] getAnnotations()
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
public org.w3c.dom.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(org.w3c.dom.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
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |