org.apache.commons.digester.xmlrules
Class DigesterRuleParser.PatternRule
java.lang.Object
|
+--org.apache.commons.digester.Rule
|
+--org.apache.commons.digester.xmlrules.DigesterRuleParser.PatternRule
- Enclosing class:
- DigesterRuleParser
- private class DigesterRuleParser.PatternRule
- extends Rule
A rule for extracting the pattern matching strings from the rules XML.
In the digester-rules document type, a pattern can either be declared
in the 'value' attribute of a element (in which case the pattern
applies to all rules elements contained within the element),
or it can be declared in the optional 'pattern' attribute of a rule
element.
Field Summary |
private java.lang.String |
attrName
|
private java.lang.String |
pattern
|
Method Summary |
void |
begin(org.xml.sax.Attributes attributes)
If a pattern is defined for the attribute, push it onto the
pattern stack. |
void |
end()
If there was a pattern for this element, pop it off the pattern
stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attrName
private java.lang.String attrName
pattern
private java.lang.String pattern
DigesterRuleParser.PatternRule
public DigesterRuleParser.PatternRule(java.lang.String attrName)
- Parameters:
attrName
- The name of the attribute containing the pattern
begin
public void begin(org.xml.sax.Attributes attributes)
- If a pattern is defined for the attribute, push it onto the
pattern stack.
- Overrides:
begin
in class Rule
- Parameters:
attributes
- The attribute list of this element
end
public void end()
- If there was a pattern for this element, pop it off the pattern
stack.
- Overrides:
end
in class Rule
Copyright (c) 2001-2004 - Apache Software Foundation