net.sf.jasperreports.engine.xml
Class JRXmlTemplateDigesterFactory

java.lang.Object
  extended by net.sf.jasperreports.engine.xml.JRXmlTemplateDigesterFactory
All Implemented Interfaces:
ErrorHandler

public class JRXmlTemplateDigesterFactory
extends Object
implements ErrorHandler

Factory for template XML digesters.

Version:
$Id: JRXmlTemplateDigesterFactory.java 5050 2012-03-12 10:11:26Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
JRTemplate

Field Summary
protected static String PATTERN_BOX
           
protected static String PATTERN_BOX_BOTTOM_PEN
           
protected static String PATTERN_BOX_LEFT_PEN
           
protected static String PATTERN_BOX_PEN
           
protected static String PATTERN_BOX_RIGHT_PEN
           
protected static String PATTERN_BOX_TOP_PEN
           
protected static String PATTERN_INCLUDED_TEMPLATE
           
protected static String PATTERN_PARAGRAPH
           
protected static String PATTERN_ROOT
           
protected static String PATTERN_STYLE
           
protected static String PATTERN_STYLE_PEN
           
protected static String PATTERN_TAB_STOP
           
 
Constructor Summary
protected JRXmlTemplateDigesterFactory()
           
 
Method Summary
protected  void configureDigester(org.apache.commons.digester.Digester digester)
          Deprecated. Replaced by configureDigester(JasperReportsContext, Digester).
protected  void configureDigester(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester)
           
 JRXmlDigester createDigester()
          Deprecated. Replaced by createDigester(JasperReportsContext).
 JRXmlDigester createDigester(JasperReportsContext jasperReportsContext)
          Creates and configures a digester for template XML.
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
static JRXmlTemplateDigesterFactory instance()
          Returns the singleton instance.
protected  org.apache.commons.digester.RuleSet readRuleSet()
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN_ROOT

protected static final String PATTERN_ROOT
See Also:
Constant Field Values

PATTERN_INCLUDED_TEMPLATE

protected static final String PATTERN_INCLUDED_TEMPLATE
See Also:
Constant Field Values

PATTERN_STYLE

protected static final String PATTERN_STYLE
See Also:
Constant Field Values

PATTERN_STYLE_PEN

protected static final String PATTERN_STYLE_PEN
See Also:
Constant Field Values

PATTERN_BOX

protected static final String PATTERN_BOX
See Also:
Constant Field Values

PATTERN_BOX_PEN

protected static final String PATTERN_BOX_PEN
See Also:
Constant Field Values

PATTERN_BOX_TOP_PEN

protected static final String PATTERN_BOX_TOP_PEN
See Also:
Constant Field Values

PATTERN_BOX_LEFT_PEN

protected static final String PATTERN_BOX_LEFT_PEN
See Also:
Constant Field Values

PATTERN_BOX_BOTTOM_PEN

protected static final String PATTERN_BOX_BOTTOM_PEN
See Also:
Constant Field Values

PATTERN_BOX_RIGHT_PEN

protected static final String PATTERN_BOX_RIGHT_PEN
See Also:
Constant Field Values

PATTERN_PARAGRAPH

protected static final String PATTERN_PARAGRAPH
See Also:
Constant Field Values

PATTERN_TAB_STOP

protected static final String PATTERN_TAB_STOP
See Also:
Constant Field Values
Constructor Detail

JRXmlTemplateDigesterFactory

protected JRXmlTemplateDigesterFactory()
Method Detail

instance

public static JRXmlTemplateDigesterFactory instance()
Returns the singleton instance.

Returns:
the singleton instance

readRuleSet

protected org.apache.commons.digester.RuleSet readRuleSet()

createDigester

public JRXmlDigester createDigester(JasperReportsContext jasperReportsContext)
Creates and configures a digester for template XML.

Returns:
a template XML digester

createDigester

public JRXmlDigester createDigester()
Deprecated. Replaced by createDigester(JasperReportsContext).


configureDigester

protected void configureDigester(org.apache.commons.digester.Digester digester)
                          throws SAXException,
                                 ParserConfigurationException
Deprecated. Replaced by configureDigester(JasperReportsContext, Digester).

Throws:
SAXException
ParserConfigurationException

configureDigester

protected void configureDigester(JasperReportsContext jasperReportsContext,
                                 org.apache.commons.digester.Digester digester)
                          throws SAXException,
                                 ParserConfigurationException
Throws:
SAXException
ParserConfigurationException

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException


Copyright © 2012. All Rights Reserved.