Class IgnoreAnyChildReadHandler

java.lang.Object
org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
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 Details

    • IgnoreAnyChildReadHandler

      public IgnoreAnyChildReadHandler()
      Default Constructor.
  • Method Details

    • getHandlerForChild

      protected XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts) throws 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:
      SAXException - if there is a parsing error.
    • getObject

      public Object getObject() throws SAXException
      Returns the object for this element or null, if this element does not create an object.
      Returns:
      the object.
      Throws:
      SAXException - if an parser error occured.