Class ElementReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.metadata.parser.AbstractMetaDataReadHandler
-
- org.pentaho.reporting.engine.classic.core.metadata.parser.ElementReadHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class ElementReadHandler extends AbstractMetaDataReadHandler
-
-
Constructor Summary
Constructors Constructor Description ElementReadHandler(GlobalMetaDefinition globalMetaDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doneParsing()
Done parsing.ElementMetaDataBuilder
getBuilder()
This method should be abstract, and will be in the near future and only exists as default implementation to honor the strict requirements of preserving a stable API.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
startParsing(Attributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.metadata.parser.AbstractMetaDataReadHandler
getBundle, getCompatibilityLevel, getMaturityLevel, getName, isDeprecated, isDerivedName, isExperimental, isExpert, isHidden, isPreferred, parseName
-
-
-
-
Constructor Detail
-
ElementReadHandler
public ElementReadHandler(GlobalMetaDefinition globalMetaDefinition)
-
-
Method Detail
-
getBuilder
public ElementMetaDataBuilder getBuilder()
Description copied from class:AbstractMetaDataReadHandler
This method should be abstract, and will be in the near future and only exists as default implementation to honor the strict requirements of preserving a stable API. Override it in your sub-classes.- Overrides:
getBuilder
in classAbstractMetaDataReadHandler
- Returns:
- a meta-data builder.
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Starts parsing.- Overrides:
startParsing
in classAbstractMetaDataReadHandler
- 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.
-
-