Class SimpleSubReportReadHandler
- 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.simple.readhandlers.SimpleSubReportReadHandler
-
- All Implemented Interfaces:
SubReportReadHandler
,org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class SimpleSubReportReadHandler extends AbstractPropertyXmlReadHandler implements SubReportReadHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
BOTTOMMARGIN_ATT
Literal text for an XML attribute.static String
HEIGHT_ATT
Literal text for an XML attribute.static String
LEFTMARGIN_ATT
Literal text for an XML attribute.static String
NAME_ATT
Literal text for an XML attribute.static String
ORIENTATION_ATT
Literal text for an XML attribute.static String
ORIENTATION_LANDSCAPE_VAL
Literal text for an XML attribute.static String
ORIENTATION_PORTRAIT_VAL
Literal text for an XML attribute.static String
ORIENTATION_REVERSE_LANDSCAPE_VAL
Literal text for an XML attribute.static String
PAGEFORMAT_ATT
Literal text for an XML attribute.static String
PAGESPAN_ATT
Literal text for an XML attribute.static String
REPORT_TAG
Literal text for an XML report element.static String
RIGHTMARGIN_ATT
Literal text for an XML attribute.static String
TOPMARGIN_ATT
Literal text for an XML attribute.static String
UNIT_ATT
Literal text for an XML attribute.static String
WIDTH_ATT
Literal text for an XML attribute.
-
Constructor Summary
Constructors Constructor Description SimpleSubReportReadHandler()
-
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.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
-
REPORT_TAG
public static final String REPORT_TAG
Literal text for an XML report element.- See Also:
- Constant Field Values
-
NAME_ATT
public static final String NAME_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
PAGEFORMAT_ATT
public static final String PAGEFORMAT_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
PAGESPAN_ATT
public static final String PAGESPAN_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
UNIT_ATT
public static final String UNIT_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
LEFTMARGIN_ATT
public static final String LEFTMARGIN_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
RIGHTMARGIN_ATT
public static final String RIGHTMARGIN_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
TOPMARGIN_ATT
public static final String TOPMARGIN_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
BOTTOMMARGIN_ATT
public static final String BOTTOMMARGIN_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
WIDTH_ATT
public static final String WIDTH_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
HEIGHT_ATT
public static final String HEIGHT_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
ORIENTATION_ATT
public static final String ORIENTATION_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
ORIENTATION_PORTRAIT_VAL
public static final String ORIENTATION_PORTRAIT_VAL
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
ORIENTATION_LANDSCAPE_VAL
public static final String ORIENTATION_LANDSCAPE_VAL
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
ORIENTATION_REVERSE_LANDSCAPE_VAL
public static final String ORIENTATION_REVERSE_LANDSCAPE_VAL
Literal text for an XML attribute.- 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.
- 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.- Specified by:
getObject
in interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Returns:
- the object.
-
getSubReport
public SubReport getSubReport()
- Specified by:
getSubReport
in interfaceSubReportReadHandler
-
-