org.jfree.report.modules.factories.report.flow

Class AbstractElementReadHandler

Implemented Interfaces:
NodeReadHandler, XmlReadHandler
Known Direct Subclasses:
AutoTableCellContentReadHandler, AutoTableElementReadHandler, ContentElementReadHandler, SectionReadHandler

public abstract class AbstractElementReadHandler
extends AbstractXmlReadHandler
implements NodeReadHandler

Creation-Date: 09.04.2006, 13:55:36
Author:
Thomas Morgner

Constructor Summary

AbstractElementReadHandler()

Method Summary

protected void
configureElement(Element e)
protected abstract Element
getElement()
protected XmlReadHandler
getHandlerForChild(String uri, String tagName, Attributes atts)
Returns the handler for a child element.
Node
getNode()
Object
getObject()
Returns the object for this element or null, if this element does not create an object.
String
getStyle()
void
init(RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.
boolean
isEnabled()
protected void
startParsing(Attributes attrs)
Starts parsing.

Constructor Details

AbstractElementReadHandler

protected AbstractElementReadHandler()

Method Details

configureElement

protected void configureElement(Element e)

getElement

protected abstract Element getElement()

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String uri,
                                            String tagName,
                                            Attributes atts)
            throws SAXException
Returns the handler for a child element.
Parameters:
tagName - the tag name.
atts - the attributes.
Returns:
the handler or null, if the tagname is invalid.

getNode

public final Node getNode()
Specified by:
getNode in interface NodeReadHandler

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.

getStyle

public String getStyle()

init

public void init(RootXmlReadHandler rootHandler,
                 String uri,
                 String tagName)
Initialises the handler.
Parameters:
rootHandler - the root handler.
tagName - the tag name.

isEnabled

public boolean isEnabled()

startParsing

protected void startParsing(Attributes attrs)
            throws SAXException
Starts parsing.
Parameters:
attrs - the attributes.