Package org.eclipse.persistence.jaxb
Class JAXBUnmarshallerHandler
- java.lang.Object
-
- org.eclipse.persistence.platform.xml.SAXDocumentBuilder
-
- org.eclipse.persistence.jaxb.JAXBUnmarshallerHandler
-
- All Implemented Interfaces:
javax.xml.bind.UnmarshallerHandler,org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler,org.xml.sax.ContentHandler,org.xml.sax.ext.LexicalHandler
public class JAXBUnmarshallerHandler extends org.eclipse.persistence.platform.xml.SAXDocumentBuilder implements javax.xml.bind.UnmarshallerHandlerImplementation of UnmarshallerHandler to be used by JAXBUnmarshaller.
- See Also:
JAXBUnmarshaller,UnmarshallerHandler
-
-
Constructor Summary
Constructors Constructor Description JAXBUnmarshallerHandler(JAXBUnmarshaller newXMLUnmarshaller)Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendDocument()Event that is called at the end of processing the document.java.lang.ObjectgetResult()Return the unmarhalled document.voidstartDocument()Event that is called at the start of processing the document.-
Methods inherited from class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
addNamespaceDeclaration, appendChildNode, characters, characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getDocument, getInitializedDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, setNil, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
-
-
-
-
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 org.xml.sax.SAXExceptionEvent that is called at the end of processing the document.- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Overrides:
endDocumentin classorg.eclipse.persistence.platform.xml.SAXDocumentBuilder- Throws:
org.xml.sax.SAXException
-
startDocument
public void startDocument() throws org.xml.sax.SAXExceptionEvent that is called at the start of processing the document.- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Overrides:
startDocumentin classorg.eclipse.persistence.platform.xml.SAXDocumentBuilder- Throws:
org.xml.sax.SAXException
-
getResult
public java.lang.Object getResult() throws javax.xml.bind.JAXBException, java.lang.IllegalStateExceptionReturn the unmarhalled document. If the document is null or the endDocument was never called then an IllegalStateExcpetion will be thrown.- Specified by:
getResultin interfacejavax.xml.bind.UnmarshallerHandler- Throws:
javax.xml.bind.JAXBExceptionjava.lang.IllegalStateException
-
-