org.apache.catalina.startup

Class DigesterFactory


public class DigesterFactory
extends java.lang.Object

Wrapper class around the Digester that hide Digester's initialization details

Author:
Jean-Francois Arcand

Method Summary

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.

Method Details

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.

Parameters:
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.

Parameters:
xmlValidation - turn on/off xml validation
xmlNamespaceAware - turn on/off namespace validation
rule - 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.