|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RuleStore
As its name indicates, a RuleStore contains 2-tuples consists of a ElementSelector and an Action.
As a joran configurator goes through the elements in a document, it asks
the rule store whether there are rules matching the current pattern by
invoking the matchActions(ElementPath) method.
| Method Summary | |
|---|---|
void |
addRule(ElementSelector elementSelector,
Action action)
Add a new rule, given by a pattern and an action instance. |
void |
addRule(ElementSelector elementSelector,
String actionClassStr)
Add a new rule, given by a pattern and a action class (String). |
List<Action> |
matchActions(ElementPath elementPath)
Return a list of actions matching a pattern. |
| Method Detail |
|---|
void addRule(ElementSelector elementSelector,
String actionClassStr)
throws ClassNotFoundException
elementSelector - actionClassStr -
ClassNotFoundException
void addRule(ElementSelector elementSelector,
Action action)
elementSelector - action - List<Action> matchActions(ElementPath elementPath)
elementPath - the path to match for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||