Class JAXBSupport

java.lang.Object
org.dom4j.jaxb.JAXBSupport
Direct Known Subclasses:
JAXBModifier, JAXBReader, JAXBWriter

abstract class JAXBSupport extends Object
DOCUMENT ME!
  • Field Details

    • contextPath

      private String contextPath
    • classloader

      private ClassLoader classloader
    • jaxbContext

      private jakarta.xml.bind.JAXBContext jaxbContext
    • marshaller

      private jakarta.xml.bind.Marshaller marshaller
    • unmarshaller

      private jakarta.xml.bind.Unmarshaller unmarshaller
  • Constructor Details

    • JAXBSupport

      public JAXBSupport(String contextPath)
    • JAXBSupport

      public JAXBSupport(String contextPath, ClassLoader classloader)
  • Method Details

    • marshal

      protected Element marshal(jakarta.xml.bind.Element element) throws jakarta.xml.bind.JAXBException
      Marshals the given Elementin to its DOM4J counterpart.
      Parameters:
      element - JAXB Element to be marshalled
      Returns:
      the marshalled DOM4J Element
      Throws:
      jakarta.xml.bind.JAXBException - when an error occurs
    • unmarshal

      protected jakarta.xml.bind.Element unmarshal(Element element) throws jakarta.xml.bind.JAXBException
      Unmarshalls the specified DOM4J Elementinto a Element
      Parameters:
      element - the DOM4J element to unmarshall
      Returns:
      the unmarshalled JAXB object
      Throws:
      jakarta.xml.bind.JAXBException - when an error occurs
    • getMarshaller

      private jakarta.xml.bind.Marshaller getMarshaller() throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException
    • getUnmarshaller

      private jakarta.xml.bind.Unmarshaller getUnmarshaller() throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException
    • getContext

      private jakarta.xml.bind.JAXBContext getContext() throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException