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
A SAX handler for reading a generic object from an XML element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMap
The created handler.private Object
The object under construction.private GenericObjectFactory
The generic object factory.private ArrayList
The object reference handlers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected XmlReadHandler
getHandlerForChild
(String tagName, Attributes atts) Returns the child handler.Returns the object.protected void
startParsing
(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 Details
-
object
The object under construction. -
objectFactory
The generic object factory. -
objectRefHandlers
The object reference handlers. -
createdHandler
The created handler.
-
-
Constructor Details
-
GenericReadHandler
Creates a new handler.- Parameters:
factory
- the generic object factory.
-
-
Method Details
-
startParsing
Called at the start of parsing.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getHandlerForChild
Returns the child handler.- Overrides:
getHandlerForChild
in classAbstractXmlReadHandler
- Parameters:
tagName
- the tag name.atts
- the attributes.- Returns:
- The handler.
- Throws:
SAXException
- if there is a parsing problem.
-
getObject
Returns the object.- Returns:
- The object.
- Throws:
XmlReaderException
- ???
-