org.jfree.report.modules.parser.ext.readhandlers
Class ElementReadHandler

java.lang.Object
  |
  +--org.jfree.xml.parser.AbstractXmlReadHandler
        |
        +--org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
              |
              +--org.jfree.report.modules.parser.ext.readhandlers.ElementReadHandler
Direct Known Subclasses:
BandReadHandler

public class ElementReadHandler
extends AbstractPropertyXmlReadHandler


Fields inherited from class org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
CLOSE_TAG_COMMENT, OPEN_TAG_COMMENT
 
Constructor Summary
ElementReadHandler(Element element)
           
 
Method Summary
protected  void doneParsing()
          Done parsing.
protected  Element getElement()
           
protected  org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName, PropertyAttributes atts)
          Returns the handler for a child element.
 java.lang.Object getObject()
          Returns the object for this element or null, if this element does not create an object.
protected  void startParsing(PropertyAttributes attrs)
          Starts parsing.
protected  void storeComments()
           
 
Methods inherited from class org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
defaultStoreComments, getBuilderHints, getHandlerForChild, getPreCloseTagComments, getPreOpenTagComments, startParsing, storeCloseComments
 
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, 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

ElementReadHandler

public ElementReadHandler(Element element)
Method Detail

getElement

protected Element getElement()

startParsing

protected void startParsing(PropertyAttributes attrs)
                     throws org.xml.sax.SAXException,
                            org.jfree.xml.parser.XmlReaderException
Starts parsing.
Overrides:
startParsing in class AbstractPropertyXmlReadHandler
Parameters:
attrs - the attributes.
Throws:
org.xml.sax.SAXException - if there is a parsing error.

getHandlerForChild

protected org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName,
                                                                 PropertyAttributes atts)
                                                          throws org.jfree.xml.parser.XmlReaderException,
                                                                 org.xml.sax.SAXException
Returns the handler for a child element.
Overrides:
getHandlerForChild in class AbstractPropertyXmlReadHandler
Parameters:
tagName - the tag name.
atts - the attributes.
Returns:
the handler or null, if the tagname is invalid.
Throws:
org.xml.sax.SAXException - if there is a parsing error.
org.jfree.xml.parser.XmlReaderException - if there is a reader error.

doneParsing

protected void doneParsing()
                    throws org.xml.sax.SAXException,
                           org.jfree.xml.parser.XmlReaderException
Done parsing.
Overrides:
doneParsing in class AbstractPropertyXmlReadHandler
Throws:
org.xml.sax.SAXException - if there is a parsing error.
org.jfree.xml.parser.XmlReaderException - if there is a reader error.

getObject

public java.lang.Object getObject()
                           throws org.jfree.xml.parser.XmlReaderException
Returns the object for this element or null, if this element does not create an object.
Overrides:
getObject in class org.jfree.xml.parser.AbstractXmlReadHandler
Returns:
the object.
Throws:
org.jfree.xml.parser.XmlReaderException - if there is a parsing error.

storeComments

protected void storeComments()
                      throws org.xml.sax.SAXException
Overrides:
storeComments in class AbstractPropertyXmlReadHandler