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 javax.xml.bind.JAXBContext jaxbContext
    • marshaller

      private javax.xml.bind.Marshaller marshaller
    • unmarshaller

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

    • JAXBSupport

      public JAXBSupport(String contextPath)
    • JAXBSupport

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

    • marshal

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

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

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

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

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