com.jrefinery.report.io.ext
Class ExtReportHandler

java.lang.Object
  |
  +--com.jrefinery.report.io.ext.ExtReportHandler
All Implemented Interfaces:
org.jfree.xml.ElementDefinitionHandler

public class ExtReportHandler
extends java.lang.Object
implements org.jfree.xml.ElementDefinitionHandler

A handler for the extended report definition format. This is the root handler for the report definition format.

Author:
Thomas Morgner.

Field Summary
static java.lang.String DATA_DEFINITION_TAG
          The data definition tag name.
static java.lang.String FUNCTIONS_TAG
          The functions tag name.
static java.lang.String PARSER_CONFIG_TAG
          The parser config tag name.
static java.lang.String REPORT_CONFIG_TAG
          The report config tag name.
static java.lang.String REPORT_DEFINITION_TAG
          The report definition tag name.
static java.lang.String REPORT_DESCRIPTION_TAG
          The report description tag name.
static java.lang.String STYLES_TAG
          The styles tag name.
static java.lang.String TEMPLATES_TAG
          The templates tag name.
 
Constructor Summary
ExtReportHandler(org.jfree.xml.Parser parser, java.lang.String finishTag)
          Creates a new handler.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Callback to indicate that some character data has been read.
 void endElement(java.lang.String tagName)
          Callback to indicate that an XML element end tag has been read by the parser.
 org.jfree.xml.Parser getParser()
          Returns the parser.
 void startElement(java.lang.String tagName, org.xml.sax.Attributes attrs)
          Callback to indicate that an XML element start tag has been read by the parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT_DEFINITION_TAG

public static final java.lang.String REPORT_DEFINITION_TAG
The report definition tag name.

See Also:
Constant Field Values

PARSER_CONFIG_TAG

public static final java.lang.String PARSER_CONFIG_TAG
The parser config tag name.

See Also:
Constant Field Values

REPORT_CONFIG_TAG

public static final java.lang.String REPORT_CONFIG_TAG
The report config tag name.

See Also:
Constant Field Values

STYLES_TAG

public static final java.lang.String STYLES_TAG
The styles tag name.

See Also:
Constant Field Values

TEMPLATES_TAG

public static final java.lang.String TEMPLATES_TAG
The templates tag name.

See Also:
Constant Field Values

REPORT_DESCRIPTION_TAG

public static final java.lang.String REPORT_DESCRIPTION_TAG
The report description tag name.

See Also:
Constant Field Values

FUNCTIONS_TAG

public static final java.lang.String FUNCTIONS_TAG
The functions tag name.

See Also:
Constant Field Values

DATA_DEFINITION_TAG

public static final java.lang.String DATA_DEFINITION_TAG
The data definition tag name.

See Also:
Constant Field Values
Constructor Detail

ExtReportHandler

public ExtReportHandler(org.jfree.xml.Parser parser,
                        java.lang.String finishTag)
Creates a new handler.

Parameters:
parser - the parser.
finishTag - the finish tag.
Method Detail

startElement

public void startElement(java.lang.String tagName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Callback to indicate that an XML element start tag has been read by the parser.

Specified by:
startElement in interface org.jfree.xml.ElementDefinitionHandler
Parameters:
tagName - the tag name.
attrs - the attributes.
Throws:
org.xml.sax.SAXException - if a parser error occurs or the validation failed.

characters

public void characters(char[] ch,
                       int start,
                       int length)
Callback to indicate that some character data has been read.

Specified by:
characters in interface org.jfree.xml.ElementDefinitionHandler
Parameters:
ch - the character array.
start - the start index for the characters.
length - the length of the character sequence.

endElement

public void endElement(java.lang.String tagName)
                throws org.xml.sax.SAXException
Callback to indicate that an XML element end tag has been read by the parser.

Specified by:
endElement in interface org.jfree.xml.ElementDefinitionHandler
Parameters:
tagName - the tag name.
Throws:
org.xml.sax.SAXException - if a parser error occurs or the validation failed.

getParser

public org.jfree.xml.Parser getParser()
Returns the parser.

Specified by:
getParser in interface org.jfree.xml.ElementDefinitionHandler
Returns:
The parser.