org.pentaho.reporting.libraries.xmlns.parser
Class IgnoreAnyChildReadHandler

java.lang.Object
  extended by org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
      extended by org.pentaho.reporting.libraries.xmlns.parser.IgnoreAnyChildReadHandler
All Implemented Interfaces:
XmlReadHandler

public class IgnoreAnyChildReadHandler
extends AbstractXmlReadHandler

A read-handler that silently ignores all childs. This readhandler produces no output.

Author:
Thomas Morgner

Constructor Summary
IgnoreAnyChildReadHandler()
          Default Constructor.
 
Method Summary
protected  XmlReadHandler getHandlerForChild(java.lang.String uri, java.lang.String tagName, org.xml.sax.Attributes atts)
          Returns the handler for a child element.
 java.lang.Object getObject()
          Returns the object for this element or null, if this element does not create an object.
 
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, deriveParseParameters, doneParsing, endElement, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement, startParsing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnoreAnyChildReadHandler

public IgnoreAnyChildReadHandler()
Default Constructor.

Method Detail

getHandlerForChild

protected XmlReadHandler getHandlerForChild(java.lang.String uri,
                                            java.lang.String tagName,
                                            org.xml.sax.Attributes atts)
                                     throws org.xml.sax.SAXException
Returns the handler for a child element.

Overrides:
getHandlerForChild in class AbstractXmlReadHandler
Parameters:
tagName - the tag name.
atts - the attributes.
uri - the URI of the namespace of the current element.
Returns:
the handler or null, if the tagname is invalid.
Throws:
org.xml.sax.SAXException - if there is a parsing error.

getObject

public java.lang.Object getObject()
                           throws org.xml.sax.SAXException
Returns the object for this element or null, if this element does not create an object.

Returns:
the object.
Throws:
org.xml.sax.SAXException - if an parser error occured.