org.jfree.report.modules.parser.base
Class AbstractPropertyXmlReadHandler

java.lang.Object
  |
  +--org.jfree.xml.parser.AbstractXmlReadHandler
        |
        +--org.jfree.report.modules.parser.base.AbstractPropertyXmlReadHandler
Direct Known Subclasses:
AbstractElementReadHandler, BandReadHandler, BasicObjectReadHandler, ClassFactoryReadHandler, ConfigurationReadHandler, DataFactoryReadHandler, DataFactoryReadHandler, DataSourceFactoryReadHandler, ElementFactoryReadHandler, ElementReadHandler, ExpressionPropertiesReadHandler, ExpressionReadHandler, FunctionsReadHandler, GroupFieldsReadHandler, GroupReadHandler, GroupReadHandler, GroupsReadHandler, GroupsReadHandler, IncludeReadHandler, JFreeReportReadHandler, LineReadHandler, PageDefinitionReadHandler, PageReadHandler, ParserConfigReadHandler, ParserConfigurationReadHandler, PropertyStringReadHandler, ReportConfigReadHandler, ReportDefinitionReadHandler, ReportDescriptionReadHandler, SimplePageDefinitionReadHandler, StyleExtendsReadHandler, StyleKeyFactoryReadHandler, StylesReadHandler, TemplatesFactoryReadHandler, TemplatesReadHandler

public abstract class AbstractPropertyXmlReadHandler
extends org.jfree.xml.parser.AbstractXmlReadHandler

Todo: Handle comments ...


Field Summary
static java.lang.String CLOSE_TAG_COMMENT
           
static java.lang.String OPEN_TAG_COMMENT
           
 
Constructor Summary
protected AbstractPropertyXmlReadHandler()
           
 
Method Summary
protected  void defaultStoreComments(CommentHintPath hintPath)
           
protected  void doneParsing()
          Done parsing.
protected  ReportBuilderHints getBuilderHints()
           
protected  org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts)
          Returns the handler for a child element.
protected  org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName, PropertyAttributes attrs)
           
 java.lang.String[] getPreCloseTagComments()
           
 java.lang.String[] getPreOpenTagComments()
           
protected  void startParsing(org.xml.sax.Attributes attrs)
          Starts parsing.
protected  void startParsing(PropertyAttributes attrs)
           
protected  void storeCloseComments()
           
protected abstract  void storeComments()
           
 
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, endElement, getObject, getRootHandler, getTagName, init, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_TAG_COMMENT

public static final java.lang.String OPEN_TAG_COMMENT

CLOSE_TAG_COMMENT

public static final java.lang.String CLOSE_TAG_COMMENT
Constructor Detail

AbstractPropertyXmlReadHandler

protected AbstractPropertyXmlReadHandler()
Method Detail

getHandlerForChild

protected final org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName,
                                                                       org.xml.sax.Attributes atts)
                                                                throws org.jfree.xml.parser.XmlReaderException,
                                                                       org.xml.sax.SAXException
Returns the handler for a child element.
Overrides:
getHandlerForChild in class org.jfree.xml.parser.AbstractXmlReadHandler
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.

getHandlerForChild

protected org.jfree.xml.parser.XmlReadHandler getHandlerForChild(java.lang.String tagName,
                                                                 PropertyAttributes attrs)
                                                          throws org.jfree.xml.parser.XmlReaderException,
                                                                 org.xml.sax.SAXException

startParsing

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

startParsing

protected void startParsing(PropertyAttributes attrs)
                     throws org.xml.sax.SAXException,
                            org.jfree.xml.parser.XmlReaderException

doneParsing

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

storeCloseComments

protected final void storeCloseComments()

storeComments

protected abstract void storeComments()
                               throws org.xml.sax.SAXException

defaultStoreComments

protected final void defaultStoreComments(CommentHintPath hintPath)

getPreCloseTagComments

public java.lang.String[] getPreCloseTagComments()

getPreOpenTagComments

public java.lang.String[] getPreOpenTagComments()

getBuilderHints

protected ReportBuilderHints getBuilderHints()