|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRule
A rule that may be pushed onto the
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).
Method Summary | |
---|---|
void |
content(RuleDirectedParser parser,
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,
Attributes attributes)
Invoked just after the rule is pushed onto the rule stack. |
Method Detail |
---|
void startElement(RuleDirectedParser parser, Attributes attributes)
void endElement(RuleDirectedParser parser)
void content(RuleDirectedParser parser, String content)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |