org.jfree.xml.parser.coretypes
Class GenericReadHandler

java.lang.Object
  extended byorg.jfree.xml.parser.AbstractXmlReadHandler
      extended byorg.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 inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
rootHandler, tagName
 
Constructor Summary
GenericReadHandler(GenericObjectFactory factory)
          Creates a new handler.
 
Method Summary
protected  XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts)
          Returns the handler for a child element.
 java.lang.Object getObject()
          Returns the object for this element.
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class AbstractXmlReadHandler
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
Description copied from class: AbstractXmlReadHandler
Returns the handler for a child element.

Overrides:
getHandlerForChild in class AbstractXmlReadHandler
Parameters:
tagName - the tag name.
Returns:
the handler.
Throws:
org.xml.sax.SAXException - if there is a parsing error.

getObject

public java.lang.Object getObject()
                           throws XmlReaderException
Description copied from interface: XmlReadHandler
Returns the object for this element.

Returns:
the object.
Throws:
XmlReaderException - if there is a parsing error.