Class Mode
java.lang.Object
org.dom4j.rule.Mode
Mode manages a number of RuleSet instances for the mode in a
stylesheet. It is responsible for finding the correct rule for a given DOM4J
Node using the XSLT processing model uses the smallest possible RuleSet to
reduce the number of Rule evaluations.
- Version:
- $Revision: 1.9 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the Rule to a RuleSet for the given name.voidapplyTemplates(Document document) voidapplyTemplates(Element element) voidRuns the actions associated with the given nodegetMatchingRule(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best.protected RuleSetgetRuleSet(int matchType) DOCUMENT ME!protected voidvoidremoveRule(Rule rule)
-
Constructor Details
-
Mode
public Mode()
-
-
Method Details
-
fireRule
-
applyTemplates
-
applyTemplates
-
addRule
-
removeRule
-
getMatchingRule
-
getRuleSet
DOCUMENT ME!- Parameters:
matchType- DOCUMENT ME!- Returns:
- the RuleSet for the given matching type. This method will never return null, a new instance will be created.
-
addToNameMap
-
removeFromNameMap
-