Class JAXBUnmarshallerHandler

  • All Implemented Interfaces:
    jakarta.xml.bind.UnmarshallerHandler, org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, ContentHandler, LexicalHandler

    public class JAXBUnmarshallerHandler
    extends org.eclipse.persistence.platform.xml.SAXDocumentBuilder
    implements jakarta.xml.bind.UnmarshallerHandler

    Implementation of UnmarshallerHandler to be used by JAXBUnmarshaller.

    See Also:
    JAXBUnmarshaller, UnmarshallerHandler
    • Constructor Detail

      • JAXBUnmarshallerHandler

        public JAXBUnmarshallerHandler​(JAXBUnmarshaller newXMLUnmarshaller)
        Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller
        Parameters:
        newXMLUnmarshaller - the JAXBUnmarshaller.
    • Method Detail

      • endDocument

        public void endDocument()
                         throws SAXException
        Event that is called at the end of processing the document.
        Specified by:
        endDocument in interface ContentHandler
        Overrides:
        endDocument in class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
        Throws:
        SAXException
      • startDocument

        public void startDocument()
                           throws SAXException
        Event that is called at the start of processing the document.
        Specified by:
        startDocument in interface ContentHandler
        Overrides:
        startDocument in class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
        Throws:
        SAXException
      • getResult

        public Object getResult()
                         throws jakarta.xml.bind.JAXBException,
                                IllegalStateException
        Return the unmarhalled document. If the document is null or the endDocument was never called then an IllegalStateExcpetion will be thrown.
        Specified by:
        getResult in interface jakarta.xml.bind.UnmarshallerHandler
        Throws:
        jakarta.xml.bind.JAXBException
        IllegalStateException