RuleSet manages a set of rules which are sorted in order of
relevance according to the XSLT defined conflict resolution policy. This
makes finding the correct rule for a DOM4J Node using the XSLT processing
model efficient as the rules can be evaluated in order of priority.
| Modifier and Type | Field and Description |
|---|---|
| private Rule[] | ruleArray
A lazily evaluated and cached array of rules sorted |
| private ArrayList | rules
An unordered list of Rule objects |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Rule | Returns: the matching Rule or no rule if none matchedis the DOM4J Node to match against node)Performs an XSLT processing model match for the rule which matches the given Node the best. |
| protected Rule[] | Returns: the rules as a sorted array in ascending precendence so that the rules at the end of the array should be used firstReturns an array of sorted rules. |
| public void | |
| public String |
| ruleArray | back to summary |
|---|---|
| private Rule[] ruleArray A lazily evaluated and cached array of rules sorted | |
| rules | back to summary |
|---|---|
| private ArrayList<Rule> rules An unordered list of Rule objects | |
| RuleSet | back to summary |
|---|---|
| public RuleSet() | |
| addAll | back to summary |
|---|---|
| public void addAll(RuleSet that) Adds all the rules to this RuleSet from the given other rule set.
| |
| addRule | back to summary |
|---|---|
| public void addRule(Rule rule) | |
| getMatchingRule | back to summary |
|---|---|
| public Rule getMatchingRule(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best. | |
| getRuleArray | back to summary |
|---|---|
| protected Rule[] getRuleArray() Returns an array of sorted rules.
| |
| removeRule | back to summary |
|---|---|
| public void removeRule(Rule rule) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |