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 HashMapThe created handler.private ObjectThe object under construction.private GenericObjectFactoryThe generic object factory.private ArrayListThe object reference handlers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected XmlReadHandlergetHandlerForChild(String tagName, Attributes atts) Returns the child handler.Returns the object.protected voidstartParsing(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:
startParsingin classAbstractXmlReadHandler- Parameters:
attrs- the attributes.- Throws:
SAXException- if there is a parsing error.
-
getHandlerForChild
Returns the child handler.- Overrides:
getHandlerForChildin 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- ???
-