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

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

public class BasicObjectReadHandler
extends AbstractPropertyXmlReadHandler


Fields inherited from class org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
CLOSE_TAG_COMMENT, OPEN_TAG_COMMENT
 
Constructor Summary
BasicObjectReadHandler(org.jfree.xml.factory.objects.ObjectDescription objectDescription, CommentHintPath commentHintPath)
           
 
Method Summary
protected  void doneParsing()
          Done parsing.
protected  org.jfree.xml.factory.objects.ClassFactory getClassFactory()
           
protected  CommentHintPath getCommentHintPath()
           
 java.lang.Object getObject()
          Returns the object for this element or null, if this element does not create an object.
protected  org.jfree.xml.factory.objects.ObjectDescription getObjectDescription()
           
protected  void handleStartParsing(org.xml.sax.Attributes attrs)
           
 void init(org.jfree.xml.parser.RootXmlReadHandler rootHandler, java.lang.String tagName)
          Initialises the handler.
protected  void setObjectDescription(org.jfree.xml.factory.objects.ObjectDescription objectDescription)
           
protected  void startParsing(PropertyAttributes attrs)
          Starts parsing.
protected  void storeComments()
           
 
Methods inherited from class org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
defaultStoreComments, getBuilderHints, getHandlerForChild, getHandlerForChild, getPreCloseTagComments, getPreOpenTagComments, startParsing, storeCloseComments
 
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, endElement, getRootHandler, getTagName, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicObjectReadHandler

public BasicObjectReadHandler(org.jfree.xml.factory.objects.ObjectDescription objectDescription,
                              CommentHintPath commentHintPath)
Parameters:
objectDescription - may be null.
commentHintPath - never null.
Method Detail

init

public void init(org.jfree.xml.parser.RootXmlReadHandler rootHandler,
                 java.lang.String tagName)
Initialises the handler.
Overrides:
init in class org.jfree.xml.parser.AbstractXmlReadHandler
Parameters:
rootHandler - the root handler.
tagName - the tag name.

getObjectDescription

protected org.jfree.xml.factory.objects.ObjectDescription getObjectDescription()

setObjectDescription

protected void setObjectDescription(org.jfree.xml.factory.objects.ObjectDescription objectDescription)

getClassFactory

protected org.jfree.xml.factory.objects.ClassFactory getClassFactory()

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.

handleStartParsing

protected void handleStartParsing(org.xml.sax.Attributes attrs)
                           throws org.jfree.xml.ElementDefinitionException

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.

getCommentHintPath

protected CommentHintPath getCommentHintPath()

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