EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.jaxb
Class JAXBUnmarshallerHandler

java.lang.Object
  extended by org.eclipse.persistence.platform.xml.SAXDocumentBuilder
      extended by org.eclipse.persistence.jaxb.JAXBUnmarshallerHandler
All Implemented Interfaces:
UnmarshallerHandler, org.xml.sax.ContentHandler

public class JAXBUnmarshallerHandler
extends SAXDocumentBuilder
implements UnmarshallerHandler


Field Summary
 
Fields inherited from class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
document, namespaceDeclarations, nodes, stringBuffer, xmlPlatform
 
Constructor Summary
JAXBUnmarshallerHandler(JAXBUnmarshaller newXMLUnmarshaller)
           
 
Method Summary
 void endDocument()
           
 java.lang.Object getResult()
          Obtains the unmarshalled result.
 void startDocument()
           
 
Methods inherited from class org.eclipse.persistence.platform.xml.SAXDocumentBuilder
addNamespaceDeclaration, appendChildNode, characters, endElement, endPrefixMapping, getDocument, getInitializedDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, 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, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 

Constructor Detail

JAXBUnmarshallerHandler

public JAXBUnmarshallerHandler(JAXBUnmarshaller newXMLUnmarshaller)
Method Detail

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class SAXDocumentBuilder
Throws:
org.xml.sax.SAXException

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class SAXDocumentBuilder
Throws:
org.xml.sax.SAXException

getResult

public java.lang.Object getResult()
                           throws JAXBException,
                                  java.lang.IllegalStateException
Description copied from interface: UnmarshallerHandler
Obtains the unmarshalled result. This method can be called only after this handler receives the endDocument SAX event.

Specified by:
getResult in interface UnmarshallerHandler
Returns:
always return a non-null valid object which was unmarshalled.
Throws:
JAXBException - if there is any unmarshalling error. Note that the implementation is allowed to throw SAXException during the parsing when it finds an error.
java.lang.IllegalStateException - if this method is called before this handler receives the endDocument event.

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference