Class AbstractElementReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.bundle.layout.elements.AbstractElementReadHandler
-
- All Implemented Interfaces:
ReportElementReadHandler
,ElementReadHandler
,org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Direct Known Subclasses:
BandReadHandler
,ContentFieldReadHandler
,ContentReadHandler
,CrosstabCellBodyReadHandler
,CrosstabColumnGroupReadHandler
,CrosstabColumnSubGroupBodyReadHandler
,CrosstabGroupReadHandler
,CrosstabOtherGroupReadHandler
,CrosstabOtherSubGroupBodyReadHandler
,CrosstabRowGroupReadHandler
,CrosstabRowSubGroupBodyReadHandler
,DataGroupBodyReadHandler
,DateFieldReadHandler
,EllipseReadHandler
,ExternalElementReadHandler
,GenericElementReadHandler
,HorizontalLineReadHandler
,LabelReadHandler
,LayoutRootElementHandler
,LegacyElementReadHandler
,MessageReadHandler
,NumberFieldReadHandler
,RectangleReadHandler
,RelationalGroupReadHandler
,ResourceFieldReadHandler
,ResourceLabelReadHandler
,ResourceMessageReadHandler
,SubGroupBodyReadHandler
,SubReportReadHandler
,SurveyScaleElementReadHandler
,TextFieldReadHandler
,VerticalLineReadHandler
public abstract class AbstractElementReadHandler extends org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler implements ElementReadHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractElementReadHandler()
protected
AbstractElementReadHandler(ElementType elementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
autoInit()
protected Element
createElement()
protected void
doneParsing()
Done parsing.Element
getElement()
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.protected void
initialize(ElementType elementType)
protected boolean
isFiltered(AttributeMetaData attributeMetaData)
protected void
startParsing(Attributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, deriveParseParameters, endElement, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
-
-
-
-
Constructor Detail
-
AbstractElementReadHandler
protected AbstractElementReadHandler()
-
AbstractElementReadHandler
protected AbstractElementReadHandler(ElementType elementType) throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
-
-
Method Detail
-
autoInit
protected void autoInit() throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
-
initialize
protected void initialize(ElementType elementType) throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
-
createElement
protected Element createElement() throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
-
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.
-
isFiltered
protected boolean isFiltered(AttributeMetaData attributeMetaData)
-
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.- Specified by:
getObject
in interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Returns:
- the object.
- Throws:
SAXException
- if an parser error occured.
-
getElement
public Element getElement()
- Specified by:
getElement
in interfaceElementReadHandler
-
-