Class ExtSubReportReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.readhandlers.ExtSubReportReadHandler
-
- All Implemented Interfaces:
SubReportReadHandler
,org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class ExtSubReportReadHandler extends AbstractPropertyXmlReadHandler implements SubReportReadHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_FACTORY_KEY
static String
DATASOURCE_FACTORY_KEY
static String
ELEMENT_FACTORY_KEY
static String
STYLE_FACTORY_KEY
static String
TEMPLATE_FACTORY_KEY
-
Constructor Summary
Constructors Constructor Description ExtSubReportReadHandler()
-
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, PropertyAttributes 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.SubReport
getSubReport()
void
init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.boolean
isDisableRootTagWarning()
void
setDisableRootTagWarning(boolean disableWarning)
protected void
startParsing(PropertyAttributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
getHandlerForChild, startParsing
-
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, deriveParseParameters, endElement, getLocator, getRootHandler, getTagName, getUri, isSameNamespace, performExternalParsing, performExternalParsing, startElement
-
-
-
-
Field Detail
-
ELEMENT_FACTORY_KEY
public static final String ELEMENT_FACTORY_KEY
- See Also:
- Constant Field Values
-
STYLE_FACTORY_KEY
public static final String STYLE_FACTORY_KEY
- See Also:
- Constant Field Values
-
CLASS_FACTORY_KEY
public static final String CLASS_FACTORY_KEY
- See Also:
- Constant Field Values
-
DATASOURCE_FACTORY_KEY
public static final String DATASOURCE_FACTORY_KEY
- See Also:
- Constant Field Values
-
TEMPLATE_FACTORY_KEY
public static final String TEMPLATE_FACTORY_KEY
- 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
-
setDisableRootTagWarning
public void setDisableRootTagWarning(boolean disableWarning)
- Specified by:
setDisableRootTagWarning
in interfaceSubReportReadHandler
-
isDisableRootTagWarning
public boolean isDisableRootTagWarning()
-
startParsing
protected void startParsing(PropertyAttributes attrs) throws SAXException
Starts parsing.- Overrides:
startParsing
in classAbstractPropertyXmlReadHandler
- 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, PropertyAttributes atts) throws SAXException
Returns the handler for a child element.- Overrides:
getHandlerForChild
in classAbstractPropertyXmlReadHandler
- Parameters:
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()
Returns the object for this element or null, if this element does not create an object.- Specified by:
getObject
in interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Returns:
- the object.
-
getSubReport
public SubReport getSubReport()
- Specified by:
getSubReport
in interfaceSubReportReadHandler
-
-