Package org.jfree.xml.parser.coretypes
Class ListReadHandler
- java.lang.Object
-
- org.jfree.xml.parser.AbstractXmlReadHandler
-
- org.jfree.xml.parser.coretypes.ListReadHandler
-
- All Implemented Interfaces:
XmlReadHandler
public class ListReadHandler extends AbstractXmlReadHandler
A SAX handler for reading a list from an XML element.
-
-
Constructor Summary
Constructors Constructor Description ListReadHandler()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, endElement, getRootHandler, getTagName, init, startElement
-
-
-
-
Method Detail
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Start parsing.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getHandlerForChild
protected XmlReadHandler getHandlerForChild(String tagName, Attributes atts) throws XmlReaderException, SAXException
Gets a handler for a child.- Overrides:
getHandlerForChild
in classAbstractXmlReadHandler
- Parameters:
tagName
- the tag name.atts
- the attributes.- Returns:
- A handler.
- Throws:
XmlReaderException
- if there is a problem with the reader.SAXException
- if there is a parsing error.
-
doneParsing
protected void doneParsing() throws SAXException, XmlReaderException
Parsing is finished.- Overrides:
doneParsing
in classAbstractXmlReadHandler
- Throws:
SAXException
- if there is a parsing error.XmlReaderException
- if there is a problem with the reader.
-
getObject
public Object getObject()
Returns the object under construction.- Returns:
- The list.
-
-