org.dom4j.rule
Class RuleManager
java.lang.Object
org.dom4j.rule.RuleManager
public class RuleManager
extends java.lang.Object
RuleManager
manages a set of rules such that a rule can be
found for a given DOM4J Node using the XSLT processing model.
RuleManager
public RuleManager()
addDefaultRule
protected void addDefaultRule(Mode mode,
Pattern pattern,
Action action)
addDefaultRules
protected void addDefaultRules(Mode mode)
Adds the default stylesheet rules to the given
Mode
instance
addRule
public void addRule(Rule rule)
createMode
protected Mode createMode()
A factory method to return a new
Mode
instance which should add
the necessary default rules
getMatchingRule
public Rule getMatchingRule(String modeName,
Node node)
Performs an XSLT processing model match for the rule which matches the
given Node the best.
modeName
- is the name of the mode associated with the rule if anynode
- is the DOM4J Node to match against
- the matching Rule or no rule if none matched
getMode
public Mode getMode(String modeName)
DOCUMENT ME!
- the Mode instance for the given mode name. If one does not exist
then it will be created.
getValueOfAction
public Action getValueOfAction()
DOCUMENT ME!
- the default value-of action which is used in the default rules
for the pattern "text()|@"
removeRule
public void removeRule(Rule rule)
setValueOfAction
public void setValueOfAction(Action valueOfAction)
Sets the default value-of action which is used in the default rules for
the pattern "text()|@"
valueOfAction
- DOCUMENT ME!
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by 