Package org.jfree.xml.parser.coretypes
Class GenericReadHandler
- java.lang.Object
-
- org.jfree.xml.parser.AbstractXmlReadHandler
-
- org.jfree.xml.parser.coretypes.GenericReadHandler
-
- All Implemented Interfaces:
XmlReadHandler
public class GenericReadHandler extends AbstractXmlReadHandler
A SAX handler for reading a generic object from an XML element.
-
-
Constructor Summary
Constructors Constructor Description GenericReadHandler(GenericObjectFactory factory)Creates a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XmlReadHandlergetHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts)Returns the child handler.java.lang.ObjectgetObject()Returns the object.protected voidstartParsing(org.xml.sax.Attributes attrs)Called at the start of parsing.-
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, doneParsing, endElement, getRootHandler, getTagName, init, startElement
-
-
-
-
Constructor Detail
-
GenericReadHandler
public GenericReadHandler(GenericObjectFactory factory)
Creates a new handler.- Parameters:
factory- the generic object factory.
-
-
Method Detail
-
startParsing
protected void startParsing(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
Called at the start of 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 org.xml.sax.SAXException
Returns the child handler.- Overrides:
getHandlerForChildin classAbstractXmlReadHandler- Parameters:
tagName- the tag name.atts- the attributes.- Returns:
- The handler.
- Throws:
org.xml.sax.SAXException- if there is a parsing problem.
-
getObject
public java.lang.Object getObject() throws XmlReaderException
Returns the object.- Returns:
- The object.
- Throws:
XmlReaderException- ???
-
-