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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericReadHandler
public GenericReadHandler(GenericObjectFactory factory)
- Creates a new handler.
- Parameters:
factory
- the generic object factory.
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.