de.ispsoft.jaxme
Class JMAtomicContentHandler

java.lang.Object
  extended byde.ispsoft.jaxme.ObservedHandlerImpl
      extended byde.ispsoft.jaxme.JMAtomicContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, ObservedHandler

public class JMAtomicContentHandler
extends ObservedHandlerImpl

A SAX parser reading a single, atomic element.

Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from class de.ispsoft.jaxme.ObservedHandlerImpl
context, locator, observer, resultCollection, resultNode
 
Constructor Summary
JMAtomicContentHandler()
          Creates a new instance of JMAtomicContentHandler.
 
Method Summary
 void characters(char[] pChars, int pStart, int pLen)
           
 void endElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName)
           
 void endPrefixMapping(java.lang.String str)
           
 java.lang.Object getResultNode()
          Returns the result.
 void ignorableWhitespace(char[] values, int param, int param2)
           
 void processingInstruction(java.lang.String pTarget, java.lang.String pData)
           
 void skippedEntity(java.lang.String pEntity)
           
 void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr)
           
 void startPrefixMapping(java.lang.String str, java.lang.String str1)
           
 
Methods inherited from class de.ispsoft.jaxme.ObservedHandlerImpl
addResultNode, endDocument, getContext, getContext, getObserver, getResultCollection, getSAXException, getSAXException, setContext, setDocumentLocator, setObserver, setResultCollection, startDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMAtomicContentHandler

public JMAtomicContentHandler()
Creates a new instance of JMAtomicContentHandler.

Method Detail

getResultNode

public java.lang.Object getResultNode()

Returns the result.

Specified by:
getResultNode in interface ObservedHandler
Overrides:
getResultNode in class ObservedHandlerImpl
Throws:
java.lang.NullPointerException - The method startDocument has not been called to reset the handler.

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
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String pNamespaceURI,
                       java.lang.String pLocalName,
                       java.lang.String pQName)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] values,
                                int param,
                                int param2)
                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

skippedEntity

public void skippedEntity(java.lang.String pEntity)
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

processingInstruction

public void processingInstruction(java.lang.String pTarget,
                                  java.lang.String pData)
                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endPrefixMapping

public void endPrefixMapping(java.lang.String str)
                      throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startPrefixMapping

public void startPrefixMapping(java.lang.String str,
                               java.lang.String str1)
                        throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] pChars,
                       int pStart,
                       int pLen)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException