public interface RuleStore
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.
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(ElementSelector elementSelector,
Action action)
Add a new rule, given by a pattern and an action instance.
|
void |
addRule(ElementSelector elementSelector,
java.lang.String actionClassStr)
Add a new rule, given by a pattern and a action class (String).
|
java.util.List<Action> |
matchActions(ElementPath elementPath)
Return a list of actions matching a pattern.
|
void addRule(ElementSelector elementSelector, java.lang.String actionClassStr) throws java.lang.ClassNotFoundException
elementSelector - the element selectoractionClassStr - class name of action to execute on elementjava.lang.ClassNotFoundException - the specified class name was not foundvoid addRule(ElementSelector elementSelector, Action action)
elementSelector - the element selectoraction - action to execute on elementjava.util.List<Action> matchActions(ElementPath elementPath)
elementPath - the path to match for