Class 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.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    See Also:
    JRTemplate
    • Field Detail

      • PATTERN_INCLUDED_TEMPLATE

        protected static final java.lang.String PATTERN_INCLUDED_TEMPLATE
        See Also:
        Constant Field Values
      • PATTERN_CONDITIONAL_STYLE

        protected static final java.lang.String PATTERN_CONDITIONAL_STYLE
        See Also:
        Constant Field Values
      • PATTERN_CONDITION_EXPRESSION

        protected static final java.lang.String PATTERN_CONDITION_EXPRESSION
        See Also:
        Constant Field Values
      • PATTERN_CONDITIONAL_STYLE_STYLE

        protected static final java.lang.String PATTERN_CONDITIONAL_STYLE_STYLE
        See Also:
        Constant Field Values
      • PATTERN_BOX_PEN

        protected static final java.lang.String PATTERN_BOX_PEN
        See Also:
        Constant Field Values
      • PATTERN_BOX_TOP_PEN

        protected static final java.lang.String PATTERN_BOX_TOP_PEN
        See Also:
        Constant Field Values
      • PATTERN_BOX_LEFT_PEN

        protected static final java.lang.String PATTERN_BOX_LEFT_PEN
        See Also:
        Constant Field Values
      • PATTERN_BOX_BOTTOM_PEN

        protected static final java.lang.String PATTERN_BOX_BOTTOM_PEN
        See Also:
        Constant Field Values
      • PATTERN_BOX_RIGHT_PEN

        protected static final java.lang.String PATTERN_BOX_RIGHT_PEN
        See Also:
        Constant Field Values
      • PATTERN_PARAGRAPH

        protected static final java.lang.String PATTERN_PARAGRAPH
        See Also:
        Constant Field Values
      • PATTERN_TAB_STOP

        protected static final java.lang.String PATTERN_TAB_STOP
        See Also:
        Constant Field Values
    • Constructor Detail

      • JRXmlTemplateDigesterFactory

        protected JRXmlTemplateDigesterFactory()
    • Method Detail

      • 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
      • createParser

        protected javax.xml.parsers.SAXParser createParser​(JasperReportsContext jasperReportsContext)
      • configureDigester

        protected void configureDigester​(JasperReportsContext jasperReportsContext,
                                         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