Class RuleSet
java.lang.Object
org.dom4j.rule.RuleSet
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.
- Version:
- $Revision: 1.10 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds all the rules to this RuleSet from the given other rule set.void
getMatchingRule
(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best.protected Rule[]
Returns an array of sorted rules.void
removeRule
(Rule rule) toString()
-
Field Details
-
rules
-
ruleArray
A lazily evaluated and cached array of rules sorted
-
-
Constructor Details
-
RuleSet
public RuleSet()
-
-
Method Details
-
toString
-
getMatchingRule
-
addRule
-
removeRule
-
addAll
Adds all the rules to this RuleSet from the given other rule set.- Parameters:
that
- DOCUMENT ME!
-
getRuleArray
Returns an array of sorted rules.- Returns:
- the rules as a sorted array in ascending precendence so that the rules at the end of the array should be used first
-