Class JAXBSupport

    • Constructor Detail

      • JAXBSupport

        public JAXBSupport​(String contextPath)
    • Method Detail

      • marshal

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

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