Package net.sf.jasperreports.engine.xml
Class JRXmlTemplateDigesterFactory
java.lang.Object
net.sf.jasperreports.engine.xml.JRXmlTemplateDigesterFactory
- All Implemented Interfaces:
ErrorHandler
Factory for template XML digesters.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureDigester(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester) createDigester(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.RuleSetvoidwarning(SAXParseException exception)
-
Field Details
-
PATTERN_ROOT
- See Also:
-
PATTERN_INCLUDED_TEMPLATE
- See Also:
-
PATTERN_STYLE
- See Also:
-
PATTERN_CONDITIONAL_STYLE
- See Also:
-
PATTERN_CONDITION_EXPRESSION
- See Also:
-
PATTERN_CONDITIONAL_STYLE_STYLE
- See Also:
-
PATTERN_PEN
- See Also:
-
PATTERN_BOX
- See Also:
-
PATTERN_BOX_PEN
- See Also:
-
PATTERN_BOX_TOP_PEN
- See Also:
-
PATTERN_BOX_LEFT_PEN
- See Also:
-
PATTERN_BOX_BOTTOM_PEN
- See Also:
-
PATTERN_BOX_RIGHT_PEN
- See Also:
-
PATTERN_PARAGRAPH
- See Also:
-
PATTERN_TAB_STOP
- See Also:
-
-
Constructor Details
-
JRXmlTemplateDigesterFactory
protected JRXmlTemplateDigesterFactory()
-
-
Method Details
-
instance
Returns the singleton instance.- Returns:
- the singleton instance
-
readRuleSet
protected org.apache.commons.digester.RuleSet readRuleSet() -
createDigester
Creates and configures a digester for template XML.- Returns:
- a template XML digester
-
createParser
-
configureDigester
protected void configureDigester(JasperReportsContext jasperReportsContext, org.apache.commons.digester.Digester digester) throws SAXException, ParserConfigurationException -
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-