Class ReportDefinitionReadHandler
- 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.ReportDefinitionReadHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class ReportDefinitionReadHandler extends AbstractPropertyXmlReadHandler
-
-
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 ReportDefinitionReadHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.protected void
startParsing(PropertyAttributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
getHandlerForChild, startParsing
-
-
-
-
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
-
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.
-
getObject
public Object getObject()
Returns the object for this element or null, if this element does not create an object.- Returns:
- the object.
-
-