EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jaxb
Class JAXBTypeElement

java.lang.Object
  extended by javax.xml.bind.JAXBElement
      extended by org.eclipse.persistence.jaxb.JAXBTypeElement
All Implemented Interfaces:
java.io.Serializable

public class JAXBTypeElement
extends JAXBElement

Subclass 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

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.xml.bind.JAXBElement
JAXBElement.GlobalScope
 
Field Summary
 
Fields inherited from class javax.xml.bind.JAXBElement
declaredType, name, nil, scope, value
 
Constructor Summary
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
 java.lang.reflect.Type getType()
          Get the Type associated with this JAXBTypeElement
 void setType(java.lang.reflect.Type type)
          Set the Type associated with this JAXBTypeElement
 
Methods inherited from class javax.xml.bind.JAXBElement
getDeclaredType, getName, getScope, getValue, isGlobalScope, isNil, isTypeSubstituted, setNil, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 name
value - 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 name
value - 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

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference