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 voiddoneParsing()Parsing is finished.protected XmlReadHandlergetHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts)Gets a handler for a child.java.lang.ObjectgetObject()Returns the object under construction.protected voidstartParsing(org.xml.sax.Attributes attrs)Start parsing.-
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, endElement, getRootHandler, getTagName, init, startElement
-
-
-
-
Constructor Detail
-
ListReadHandler
public ListReadHandler()
Default constructor.
-
-
Method Detail
-
startParsing
protected void startParsing(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
Start parsing.- Overrides:
startParsingin classAbstractXmlReadHandler- Parameters:
attrs- the attributes.- Throws:
org.xml.sax.SAXException- if there is a parsing error.
-
getHandlerForChild
protected XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts) throws XmlReaderException, org.xml.sax.SAXException
Gets a handler for a child.- Overrides:
getHandlerForChildin classAbstractXmlReadHandler- Parameters:
tagName- the tag name.atts- the attributes.- Returns:
- A handler.
- Throws:
XmlReaderException- if there is a problem with the reader.org.xml.sax.SAXException- if there is a parsing error.
-
doneParsing
protected void doneParsing() throws org.xml.sax.SAXException, XmlReaderException
Parsing is finished.- Overrides:
doneParsingin classAbstractXmlReadHandler- Throws:
org.xml.sax.SAXException- if there is a parsing error.XmlReaderException- if there is a problem with the reader.
-
getObject
public java.lang.Object getObject()
Returns the object under construction.- Returns:
- The list.
-
-