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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap
createdHandler
The created handler.private java.lang.Object
object
The object under construction.private GenericObjectFactory
objectFactory
The generic object factory.private java.util.ArrayList
objectRefHandlers
The object reference handlers.
-
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 XmlReadHandler
getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts)
Returns the child handler.java.lang.Object
getObject()
Returns the object.protected void
startParsing(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
-
-
-
-
Field Detail
-
object
private java.lang.Object object
The object under construction.
-
objectFactory
private GenericObjectFactory objectFactory
The generic object factory.
-
objectRefHandlers
private java.util.ArrayList objectRefHandlers
The object reference handlers.
-
createdHandler
private java.util.HashMap createdHandler
The created handler.
-
-
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:
startParsing
in 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:
getHandlerForChild
in 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
- ???
-
-