public class JRReportSaxParserFactory extends BaseSaxParserFactory
This factory creates a parser via the default SAX parser factory
(javax.xml.parsers.SAXParserFactory.newInstance()).
JRXMLs are always validated using W3C XML schemas. Reports that refer the JasperReports DTD (which has been deprecated) are validated using an internal XML schema equivalent to the DTD.
To improve performance, XML schemas can be cached when using a Xerces
SAX parser. See BaseSaxParserFactory.PROPERTY_CACHE_SCHEMAS.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPILER_XML_VALIDATION
Whether to validate the xml report when compiling.
|
PACKAGE_PREFIX_SUN_XERCES, PACKAGE_PREFIX_XERCES, POOL_CLASS_SUN_XERCES, POOL_CLASS_XERCES, PROPERTY_CACHE_SCHEMAS, XERCES_PARSER_PROPERTY_GRAMMAR_POOLPROPERTY_PRINT_PARSER_FACTORY, PROPERTY_REPORT_PARSER_FACTORY| Constructor and Description |
|---|
JRReportSaxParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getSchemaLocations() |
protected boolean |
isValidating() |
configureParser, createParser, createSAXParserFactory, enableSchemaCaching, getGrammarPoolCacheKey, getResourceURI, setGrammarPoolPropertypublic static final java.lang.String COMPILER_XML_VALIDATION
Defaults to true.
protected boolean isValidating()
isValidating in class BaseSaxParserFactoryprotected java.util.List<java.lang.String> getSchemaLocations()
getSchemaLocations in class BaseSaxParserFactory© 2001-2010 Jaspersoft Corporation www.jaspersoft.com