de.ispsoft.jaxme.jaxb
Class UnmarshallerHandlerImpl

java.lang.Object
  extended byde.ispsoft.jaxme.FilterContentHandler
      extended byde.ispsoft.jaxme.jaxb.UnmarshallerHandlerImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, UnmarshallerHandler

public class UnmarshallerHandlerImpl
extends FilterContentHandler
implements UnmarshallerHandler

Version:
$Id: UnmarshallerHandlerImpl.java,v 1.4 2003/07/03 23:20:25 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
UnmarshallerHandlerImpl()
          Constructor for UnmarshallerHandlerImpl.
 
Method Summary
 JMManagerFactory getJaxbContext()
          Returns the JAXBContext that created this UnmarshallerHandler.
 java.lang.Object getResult()
          Obtains the unmarshalled result.
 UnmarshallerImpl getUnmarshaller()
          Returns the UnmarshallerImpl that created this UnmarshallerHandler.
 void setJaxbContext(JMManagerFactory pContext)
          Sets the JAXBContext that created this UnmarshallerHandler.
 void setUnmarshaller(UnmarshallerImpl pUnmarshaller)
          Sets the UnmarshallerImpl that created this UnmarshallerHandler.
 void startDocument()
           
 void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr)
           
 
Methods inherited from class de.ispsoft.jaxme.FilterContentHandler
characters, endDocument, endElement, endPrefixMapping, getParentHandler, ignorableWhitespace, processingInstruction, setDocumentLocator, setParentHandler, skippedEntity, 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, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
 

Constructor Detail

UnmarshallerHandlerImpl

public UnmarshallerHandlerImpl()
Constructor for UnmarshallerHandlerImpl.

Method Detail

setJaxbContext

public void setJaxbContext(JMManagerFactory pContext)

Sets the JAXBContext that created this UnmarshallerHandler.


getJaxbContext

public JMManagerFactory getJaxbContext()

Returns the JAXBContext that created this UnmarshallerHandler.


setUnmarshaller

public void setUnmarshaller(UnmarshallerImpl pUnmarshaller)

Sets the UnmarshallerImpl that created this UnmarshallerHandler.


getUnmarshaller

public UnmarshallerImpl getUnmarshaller()

Returns the UnmarshallerImpl that created this UnmarshallerHandler.


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.
See Also:
UnmarshallerHandler.getResult()

startDocument

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

startElement

public void startElement(java.lang.String pNamespaceURI,
                         java.lang.String pLocalName,
                         java.lang.String pQName,
                         org.xml.sax.Attributes pAttr)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class FilterContentHandler
Throws:
org.xml.sax.SAXException