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 Summary
Constructors Constructor Description IgnoreAnyChildReadHandler()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XmlReadHandlergetHandlerForChild(String uri, String tagName, Attributes atts)Returns the handler for a child element.ObjectgetObject()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
-
-
-
-
Method Detail
-
getHandlerForChild
protected XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts) throws SAXException
Returns the handler for a child element.- Overrides:
getHandlerForChildin classAbstractXmlReadHandler- 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.
-
-