Class BasicObjectReadHandler
- 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.BasicObjectReadHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Direct Known Subclasses:
CompoundObjectReadHandler
public class BasicObjectReadHandler extends AbstractPropertyXmlReadHandler
-
-
Constructor Summary
Constructors Constructor Description BasicObjectReadHandler(ObjectDescription objectDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doneParsing()
Done parsing.protected ClassFactory
getClassFactory()
Object
getObject()
Returns the object for this element or null, if this element does not create an object.protected ObjectDescription
getObjectDescription()
protected void
handleStartParsing(Attributes attrs)
void
init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.protected void
setObjectDescription(ObjectDescription objectDescription)
protected void
startParsing(PropertyAttributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
getHandlerForChild, getHandlerForChild, startParsing
-
-
-
-
Constructor Detail
-
BasicObjectReadHandler
public BasicObjectReadHandler(ObjectDescription objectDescription)
- Parameters:
objectDescription
- may be null.
-
-
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
-
getObjectDescription
protected ObjectDescription getObjectDescription()
-
setObjectDescription
protected void setObjectDescription(ObjectDescription objectDescription)
-
getClassFactory
protected ClassFactory getClassFactory()
-
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.
-
handleStartParsing
protected void handleStartParsing(Attributes attrs) throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
-
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.- Returns:
- the object.
-
-