Class ContentRootElementHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.bundle.content.ContentRootElementHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class ContentRootElementHandler extends org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
The content root handler is the first handler that is parsed when dealing with bundle-reports. This file contains all the forwards to the various report-files. A bundle always contains a master-report. It is not possible to parse a full bundle into a subreport. However, it is possible to parse the subreport xml files contained in a bundle into subreports, if needed.- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static String
PRPT_SPEC_VERSION
-
Constructor Summary
Constructors Constructor Description ContentRootElementHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doneParsing()
Done parsing.protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
getHandlerForChild(String uri, String tagName, Attributes atts)
Returns the handler for a child element.Object
getObject()
Returns the object for this element or null, if this element does not create an object.void
init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.protected void
startParsing(Attributes attrs)
Starts parsing.
-
-
-
Field Detail
-
PRPT_SPEC_VERSION
public static final String PRPT_SPEC_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName) throws SAXException
Initialises the handler.- Specified by:
init
in interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Overrides:
init
in classorg.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
- Parameters:
rootHandler
- the root handler.tagName
- the tag name.- Throws:
SAXException
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Starts parsing.- Overrides:
startParsing
in classorg.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getHandlerForChild
protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts) throws SAXException
Returns the handler for a child element.- Overrides:
getHandlerForChild
in classorg.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
- Parameters:
uri
- the URI of the namespace of the current element.tagName
- the tag name.atts
- the attributes.- Returns:
- the handler or null, if the tagname is invalid.
- Throws:
SAXException
- if there is a parsing error.
-
doneParsing
protected void doneParsing() throws SAXException
Done parsing.- Overrides:
doneParsing
in classorg.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
- 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.
-
-