org.jfree.xml.parser.coretypes

Class ListReadHandler

Implemented Interfaces:
XmlReadHandler

public class ListReadHandler
extends AbstractXmlReadHandler

A SAX handler for reading a list from an XML element.

Constructor Summary

ListReadHandler()
Default constructor.

Method Summary

protected void
doneParsing()
Parsing is finished.
protected XmlReadHandler
getHandlerForChild(String tagName, Attributes atts)
Gets a handler for a child.
Object
getObject()
Returns the object under construction.
protected void
startParsing(Attributes attrs)
Start parsing.

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

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

Constructor Details

ListReadHandler

public ListReadHandler()
Default constructor.

Method Details

doneParsing

protected void doneParsing()
            throws SAXException,
                   XmlReaderException
Parsing is finished.
Overrides:
doneParsing in interface AbstractXmlReadHandler
Throws:
XmlReaderException - if there is a problem with the reader.

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String tagName,
                                            Attributes atts)
            throws XmlReaderException,
                   SAXException
Gets a handler for a child.
Overrides:
getHandlerForChild in interface AbstractXmlReadHandler
Parameters:
tagName - the tag name.
atts - the attributes.
Returns:
A handler.
Throws:
XmlReaderException - if there is a problem with the reader.

getObject

public Object getObject()
Returns the object under construction.
Specified by:
getObject in interface XmlReadHandler
Returns:
The list.

startParsing

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