org.apache.catalina.startup
Class DigesterFactory
java.lang.Object
org.apache.catalina.startup.DigesterFactory
public class DigesterFactory
extends java.lang.Object
Wrapper class around the Digester that hide Digester's initialization details
- Jean-Francois Arcand
static Digester | newDigester() - Create a
Digester parser with no Rule
associated and XML validation turned off.
|
static Digester | newDigester(RuleSet rule) - Create a
Digester parser with XML validation turned off.
|
static Digester | newDigester(boolean xmlValidation, boolean xmlNamespaceAware, RuleSet rule) - Create a
Digester parser.
|
protected static void | register(String resourceURL, String resourcePublicId) - Load the resource and add it to the
|
protected static void | registerLocalSchema() - Utilities used to force the parser to use local schema, when available,
instead of the
schemaLocation XML element.
|
protected static void | turnOnValidation(Digester digester) - Turn on DTD and/or validation (based on the parser implementation)
|
protected static void | turnOnXercesValidation(Digester digester) - Turn on schema AND DTD validation on Xerces parser.
|
newDigester
public static Digester newDigester()
Create a Digester
parser with no Rule
associated and XML validation turned off.
newDigester
public static Digester newDigester(RuleSet rule)
Create a Digester
parser with XML validation turned off.
rule
- an instance of RuleSet
used for parsing the xml.
newDigester
public static Digester newDigester(boolean xmlValidation,
boolean xmlNamespaceAware,
RuleSet rule)
Create a Digester
parser.
xmlValidation
- turn on/off xml validationxmlNamespaceAware
- turn on/off namespace validationrule
- an instance of RuleSet
used for parsing the xml.
register
protected static void register(String resourceURL,
String resourcePublicId)
Load the resource and add it to the
registerLocalSchema
protected static void registerLocalSchema()
Utilities used to force the parser to use local schema, when available,
instead of the schemaLocation
XML element.
turnOnValidation
protected static void turnOnValidation(Digester digester)
Turn on DTD and/or validation (based on the parser implementation)
turnOnXercesValidation
protected static void turnOnXercesValidation(Digester digester)
Turn on schema AND DTD validation on Xerces parser.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.