java.lang.Object
org.eclipse.persistence.jaxb.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.
- Author:
- mmacivor
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRepresenting parameter level annotations that should be applied to this type.Indicates if a global element should be generated for this type.INTERNAL: Indicates the schema type to be used during marshalgetType()The type to be bound.INTERNAL Returns the Descriptor associated with this TypeMappingInfo.Returns the xml-element as aElementwhich represents the parameter level annotations that should be applied to this type.Root element name associated with this type;booleanReturn if the global element will be marked as nillablevoidsetAnnotations(Annotation[] annotations) voidvoidsetNillable(boolean nillable) Set if the global element should be marked as nillablevoidvoidsetXmlDescriptor(Descriptor xmlDescriptor) INTERNAL Sets the Descriptor associated with this TypeMappingInfo.voidsetXmlElement(Element xmlElement) Set the xml-elementElementrepresenting parameter level annotations that should be applied to this type.voidsetXmlTagName(QName tagName)
-
Constructor Details
-
TypeMappingInfo
public TypeMappingInfo()
-
-
Method Details
-
getSchemaType
INTERNAL: Indicates the schema type to be used during marshal -
getElementScope
Indicates if a global element should be generated for this type. -
setElementScope
-
isNillable
public boolean isNillable()Return if the global element will be marked as nillable -
setNillable
public void setNillable(boolean nillable) Set if the global element should be marked as nillable -
getXmlTagName
Root element name associated with this type; -
setXmlTagName
-
getType
The type to be bound. -
setType
-
getAnnotations
Representing parameter level annotations that should be applied to this type. -
setAnnotations
-
getXmlDescriptor
INTERNAL Returns the Descriptor associated with this TypeMappingInfo. This is set when the metadata is initialized. -
setXmlDescriptor
INTERNAL Sets the Descriptor associated with this TypeMappingInfo. This is set when the metadata is initialized. -
getXmlElement
Returns the xml-element as aElementwhich represents the parameter level annotations that should be applied to this type.- Returns:
Elementwhich represents the parameter level annotations that should be applied to this type if set, otherwise null
-
setXmlElement
Set the xml-elementElementrepresenting parameter level annotations that should be applied to this type. IfxmlElementis 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-Elementcreated from an xml-element- See Also:
-