|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MatchRuleVisitor
Implementers of this interface can be used with MatchRule.apply() to navigate through the parsed rule tree and execute specific tasks on the elements.
| Method Summary | |
|---|---|
void |
attribute(java.lang.String name,
MatchRuleCompareOperator compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
This method will be called for each attribute. |
void |
endGroup()
This method will be called for each group end occurence. |
void |
startGroup(boolean andOperator,
boolean notOperator)
This method will be called for each start of a new group. |
void |
walkThroughFinished()
This method will be called when the MatchRule has finished to walk through its elements. |
void |
walkThroughInit()
This method will be called right before the MatchRule walks through its elements. |
| Method Detail |
|---|
void walkThroughInit()
void walkThroughFinished()
void startGroup(boolean andOperator,
boolean notOperator)
andOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operationvoid endGroup()
void attribute(java.lang.String name,
MatchRuleCompareOperator compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
name - The attribute's namecompareOperator - The operator used to compare valuesvalues - All values the attribute my match (implicit OR combination !)andOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||