Package org.eclipse.persistence.jaxb
Class JAXBTypeElement
- java.lang.Object
-
- javax.xml.bind.JAXBElement
-
- org.eclipse.persistence.jaxb.JAXBTypeElement
-
- All Implemented Interfaces:
java.io.Serializable
public class JAXBTypeElement extends javax.xml.bind.JAXBElementSubclass of JAXBElement to allow the use of ParameterizedTypes.
Used as a wrapper object just as JAXBElement would be used during JAXB marshal operations.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JAXBTypeElement(javax.xml.namespace.QName name, java.lang.Object value, java.lang.Class type)Create a new JAXBTypeElement.JAXBTypeElement(javax.xml.namespace.QName name, java.lang.Object value, java.lang.reflect.ParameterizedType type)Create a new JAXBTypeElement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.TypegetType()Get the Type associated with this JAXBTypeElementvoidsetType(java.lang.reflect.Type type)Set the Type associated with this JAXBTypeElement
-
-
-
Constructor Detail
-
JAXBTypeElement
public JAXBTypeElement(javax.xml.namespace.QName name, java.lang.Object value, java.lang.reflect.ParameterizedType type)Create a new JAXBTypeElement.- Parameters:
name- QName representing the xml element tag namevalue- Object representing the value of an xml element.type- ParameterizedType associated with this JAXBTypeElement.
-
JAXBTypeElement
public JAXBTypeElement(javax.xml.namespace.QName name, java.lang.Object value, java.lang.Class type)Create a new JAXBTypeElement.- Parameters:
name- QName representing the xml element tag namevalue- Object representing the value of an xml element.type- Class associated with this JAXBTypeElement.
-
-
Method Detail
-
getType
public java.lang.reflect.Type getType()
Get the Type associated with this JAXBTypeElement- Returns:
- the Type associated with this JAXBTypeElement.
-
setType
public void setType(java.lang.reflect.Type type)
Set the Type associated with this JAXBTypeElement- Parameters:
type- to associate with this JAXBTypeElement
-
-