Module org.eclipse.persistence.moxy
Package org.eclipse.persistence.jaxb
Class JAXBUnmarshallerHandler
java.lang.Object
org.eclipse.persistence.platform.xml.SAXDocumentBuilder
org.eclipse.persistence.jaxb.JAXBUnmarshallerHandler
- All Implemented Interfaces:
UnmarshallerHandler
,ExtendedContentHandler
,ContentHandler
,LexicalHandler
Implementation of UnmarshallerHandler to be used by JAXBUnmarshaller.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
document, locator, namespaceDeclarations, nodes, stringBuffer, xmlPlatform
-
Constructor Summary
ConstructorDescriptionJAXBUnmarshallerHandler
(JAXBUnmarshaller newXMLUnmarshaller) Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller -
Method Summary
Modifier and TypeMethodDescriptionvoid
Event that is called at the end of processing the document.Return the unmarhalled document.void
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
-
Constructor Details
-
JAXBUnmarshallerHandler
Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller- Parameters:
newXMLUnmarshaller
- the JAXBUnmarshaller.
-
-
Method Details
-
endDocument
Event that is called at the end of processing the document.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classSAXDocumentBuilder
- Throws:
SAXException
-
startDocument
Event that is called at the start of processing the document.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classSAXDocumentBuilder
- Throws:
SAXException
-
getResult
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 interfaceUnmarshallerHandler
- Throws:
JAXBException
IllegalStateException
-