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 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of exact (local) attribute names to RuleSet instancesMap of exact (local) element names to RuleSet instancesprivate RuleSet[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the Rule to a RuleSet for the given name.void
applyTemplates
(Document document) void
applyTemplates
(Element element) void
Runs 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 RuleSet
getRuleSet
(int matchType) DOCUMENT ME!protected void
void
removeRule
(Rule rule)
-
Field Details
-
ruleSets
-
elementNameRuleSets
-
attributeNameRuleSets
-
-
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
-