org.jfree.xml.parser.coretypes

Class GenericReadHandler

public class GenericReadHandler extends AbstractXmlReadHandler

A SAX handler for reading a generic object from an XML element.
Constructor Summary
GenericReadHandler(GenericObjectFactory factory)
Creates a new handler.
Method Summary
protected XmlReadHandlergetHandlerForChild(String tagName, Attributes atts)
Returns the child handler.
ObjectgetObject()
Returns the object.
protected voidstartParsing(Attributes attrs)
Called at the start of parsing.

Constructor Detail

GenericReadHandler

public GenericReadHandler(GenericObjectFactory factory)
Creates a new handler.

Parameters: factory the generic object factory.

Method Detail

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String tagName, Attributes atts)
Returns the child handler.

Parameters: tagName the tag name. atts the attributes.

Returns: The handler.

Throws: SAXException if there is a parsing problem.

getObject

public Object getObject()
Returns the object.

Returns: The object.

Throws: XmlReaderException ???

startParsing

protected void startParsing(Attributes attrs)
Called at the start of parsing.

Parameters: attrs the attributes.

Throws: SAXException if there is a parsing error.