net.sf.jasperreports.engine.xml
Class JRXmlTemplateDigesterFactory

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

public class JRXmlTemplateDigesterFactory
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Factory for template XML digesters.

Version:
$Id: JRXmlTemplateDigesterFactory.java 1763 2007-06-21 08:47:21Z lucianc $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
JRTemplate

Constructor Summary
protected JRXmlTemplateDigesterFactory()
           
 
Method Summary
protected  void configureDigester(org.apache.commons.digester.Digester digester)
           
 JRXmlDigester createDigester()
          Creates and configures a digester for template XML.
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
static JRXmlTemplateDigesterFactory instance()
          Returns the singleton instance.
protected  org.apache.commons.digester.RuleSet readRuleSet()
           
 void warning(org.xml.sax.SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
Creates and configures a digester for template XML.

Returns:
a template XML digester

configureDigester

protected void configureDigester(org.apache.commons.digester.Digester digester)
                          throws org.xml.sax.SAXException,
                                 javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

error

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

fatalError

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

warning

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


© 2001-2006 JasperSoft Corporation www.jaspersoft.com