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

Class AbstractElementReadHandler

public abstract class AbstractElementReadHandler extends AbstractXmlReadHandler implements NodeReadHandler

Creation-Date: 09.04.2006, 13:55:36

Author: Thomas Morgner

Constructor Summary
protected AbstractElementReadHandler()
Method Summary
protected voidconfigureElement(Element e)
protected abstract ElementgetElement()
protected XmlReadHandlergetHandlerForChild(String uri, String tagName, Attributes atts)
Returns the handler for a child element.
NodegetNode()
ObjectgetObject()
Returns the object for this element or null, if this element does not create an object.
StringgetStyle()
voidinit(RootXmlReadHandler rootHandler, String uri, String tagName)
Initialises the handler.
booleanisEnabled()
protected voidstartParsing(Attributes attrs)
Starts parsing.

Constructor Detail

AbstractElementReadHandler

protected AbstractElementReadHandler()

Method Detail

configureElement

protected void configureElement(Element e)

getElement

protected abstract Element getElement()

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts)
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.

Throws: SAXException if there is a parsing error.

getNode

public final Node getNode()

getObject

public Object getObject()
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)
Starts parsing.

Parameters: attrs the attributes.

Throws: SAXException if there is a parsing error.