Example usage for org.apache.commons.digester3 RuleSet getNamespaceURI

List of usage examples for org.apache.commons.digester3 RuleSet getNamespaceURI

Introduction

In this page you can find the example usage for org.apache.commons.digester3 RuleSet getNamespaceURI.

Prototype

String getNamespaceURI();

Source Link

Document

Return the namespace URI that will be applied to all Rule instances created from this RuleSet.

Usage

From source file:com.dotosoft.dot4command.config.xml.XmlConfigParser.java

/**
 * <p>Return the <code>Digester</code> instance to be used for
 * parsing, creating one if necessary.</p>
 * @return A Digester instance./*from ww w  .j a va2  s  .  c o m*/
 */
public Digester getDigester() {
    Digester digester = new Digester();
    RuleSet ruleSet = getRuleSet();
    digester.setNamespaceAware(ruleSet.getNamespaceURI() != null);
    digester.setUseContextClassLoader(getUseContextClassLoader());
    digester.setValidating(false);
    digester.addRuleSet(ruleSet);
    return digester;
}