org.jfree.xml.parser.coretypes

Class GenericReadHandler

Implemented Interfaces:
XmlReadHandler

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 XmlReadHandler
getHandlerForChild(String tagName, Attributes atts)
Returns the child handler.
Object
getObject()
Returns the object.
protected void
startParsing(Attributes attrs)
Called at the start of parsing.

Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler

characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement, startParsing

Constructor Details

GenericReadHandler

public GenericReadHandler(GenericObjectFactory factory)
Creates a new handler.
Parameters:
factory - the generic object factory.

Method Details

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String tagName,
                                            Attributes atts)
            throws SAXException
Returns the child handler.
Overrides:
getHandlerForChild in interface AbstractXmlReadHandler
Parameters:
tagName - the tag name.
atts - the attributes.
Returns:
The handler.

getObject

public Object getObject()
            throws XmlReaderException
Returns the object.
Specified by:
getObject in interface XmlReadHandler
Returns:
The object.
Throws:
XmlReaderException - ???

startParsing

protected void startParsing(Attributes attrs)
            throws SAXException
Called at the start of parsing.
Overrides:
startParsing in interface AbstractXmlReadHandler
Parameters:
attrs - the attributes.