private class DigesterRuleParser.IncludeRule extends Rule
This rule will detect 'circular' includes, which would result in infinite recursion. It throws a CircularIncludeException when a cycle is detected, which will terminate the parse.
digester, namespaceURI| Constructor and Description |
|---|
IncludeRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(org.xml.sax.Attributes attributes)
To include a rules xml file, we instantiate another Digester, and
another DigesterRulesRuleSet.
|
private void |
includeProgrammaticRules(java.lang.String className)
Creates an instance of the indicated class.
|
private void |
includeXMLRules(java.lang.String fileName)
Creates another DigesterRuleParser, and uses it to extract the rules
out of the give XML file.
|
begin, body, body, end, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURIpublic void begin(org.xml.sax.Attributes attributes)
throws java.lang.Exception
private void includeXMLRules(java.lang.String fileName)
throws java.io.IOException,
org.xml.sax.SAXException,
CircularIncludeException
java.io.IOExceptionorg.xml.sax.SAXExceptionCircularIncludeExceptionprivate void includeProgrammaticRules(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.ClassCastException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.ClassNotFoundExceptionjava.lang.ClassCastExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionCopyright 2001-2005 The Apache Software Foundation.