public interface IRule
RuleDirectedParser
's
rule stack. A rule is associated with an XML element. It is pushed onto the stack when the
open tag for the rule is encountered. It is is popped off the stack after the end-tag is
encountered. It is notified about any text it directly wraps around.
Rules should be stateless, because a rule instance may appear multiple times in the rule stack (if elements can be recusively nested).
Modifier and Type | Method and Description |
---|---|
void |
content(RuleDirectedParser parser,
java.lang.String content)
Invoked when real content is found.
|
void |
endElement(RuleDirectedParser parser)
Invoked just after the rule is popped off the rule stack.
|
void |
startElement(RuleDirectedParser parser,
org.xml.sax.Attributes attributes)
Invoked just after the rule is pushed onto the rule stack.
|
void startElement(RuleDirectedParser parser, org.xml.sax.Attributes attributes)
void endElement(RuleDirectedParser parser)
void content(RuleDirectedParser parser, java.lang.String content)