Class JAXBTypeElement

java.lang.Object
jakarta.xml.bind.JAXBElement
org.eclipse.persistence.jaxb.JAXBTypeElement
All Implemented Interfaces:
Serializable

public class JAXBTypeElement extends jakarta.xml.bind.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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jakarta.xml.bind.JAXBElement

    jakarta.xml.bind.JAXBElement.GlobalScope
  • Field Summary

    Fields inherited from class jakarta.xml.bind.JAXBElement

    declaredType, name, nil, scope, value
  • Constructor Summary

    Constructors
    Constructor
    Description
    JAXBTypeElement(QName name, Object value, Class type)
    Create a new JAXBTypeElement.
    Create a new JAXBTypeElement.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Type associated with this JAXBTypeElement
    void
    setType(Type type)
    Set the Type associated with this JAXBTypeElement

    Methods inherited from class jakarta.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 Details

    • JAXBTypeElement

      public JAXBTypeElement(QName name, Object value, 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(QName name, Object value, 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 Details

    • getType

      public Type getType()
      Get the Type associated with this JAXBTypeElement
      Returns:
      the Type associated with this JAXBTypeElement.
    • setType

      public void setType(Type type)
      Set the Type associated with this JAXBTypeElement
      Parameters:
      type - to associate with this JAXBTypeElement