Package net.sf.jasperreports.engine.xml
Class JRXmlTemplateDigesterFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.xml.JRXmlTemplateDigesterFactory
-
- All Implemented Interfaces:
ErrorHandler
public class JRXmlTemplateDigesterFactory extends Object implements ErrorHandler
Factory for template XML digesters.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JRTemplate
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPATTERN_BOXprotected static StringPATTERN_BOX_BOTTOM_PENprotected static StringPATTERN_BOX_LEFT_PENprotected static StringPATTERN_BOX_PENprotected static StringPATTERN_BOX_RIGHT_PENprotected static StringPATTERN_BOX_TOP_PENprotected static StringPATTERN_CONDITION_EXPRESSIONprotected static StringPATTERN_CONDITIONAL_STYLEprotected static StringPATTERN_CONDITIONAL_STYLE_STYLEprotected static StringPATTERN_INCLUDED_TEMPLATEprotected static StringPATTERN_PARAGRAPHprotected static StringPATTERN_PENprotected static StringPATTERN_ROOTprotected static StringPATTERN_STYLEprotected static StringPATTERN_TAB_STOP
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRXmlTemplateDigesterFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureDigester(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester)JRXmlDigestercreateDigester(JasperReportsContext jasperReportsContext)Creates and configures a digester for template XML.protected SAXParsercreateParser(JasperReportsContext jasperReportsContext)voiderror(SAXParseException exception)voidfatalError(SAXParseException exception)static JRXmlTemplateDigesterFactoryinstance()Returns the singleton instance.protected org.apache.commons.digester.RuleSetreadRuleSet()voidwarning(SAXParseException exception)
-
-
-
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_CONDITIONAL_STYLE
protected static final String PATTERN_CONDITIONAL_STYLE
- See Also:
- Constant Field Values
-
PATTERN_CONDITION_EXPRESSION
protected static final String PATTERN_CONDITION_EXPRESSION
- See Also:
- Constant Field Values
-
PATTERN_CONDITIONAL_STYLE_STYLE
protected static final String PATTERN_CONDITIONAL_STYLE_STYLE
- See Also:
- Constant Field Values
-
PATTERN_PEN
protected static final String PATTERN_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
-
-
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
-
createParser
protected SAXParser createParser(JasperReportsContext jasperReportsContext)
-
configureDigester
protected void configureDigester(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester) throws SAXException, ParserConfigurationException
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
public void warning(SAXParseException exception) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
-