|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Constructor Summary | |
Mode()
|
Method Summary | |
void |
addRule(Rule rule)
|
protected java.util.Map |
addToNameMap(java.util.Map map,
java.lang.String name,
Rule rule)
Adds the Rule to a RuleSet for the given name. |
void |
applyTemplates(Document document)
|
void |
applyTemplates(Element element)
|
void |
fireRule(Node node)
Runs the actions associated with the given node |
Rule |
getMatchingRule(Node node)
Performs an XSLT processing model match for the rule which matches the given Node the best. |
protected RuleSet |
getRuleSet(int matchType)
|
protected void |
removeFromNameMap(java.util.Map map,
java.lang.String name,
Rule rule)
|
void |
removeRule(Rule rule)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mode()
Method Detail |
public void fireRule(Node node) throws java.lang.Exception
java.lang.Exception
public void applyTemplates(Element element) throws java.lang.Exception
java.lang.Exception
public void applyTemplates(Document document) throws java.lang.Exception
java.lang.Exception
public void addRule(Rule rule)
public void removeRule(Rule rule)
public Rule getMatchingRule(Node node)
node
- is the DOM4J Node to match against
protected RuleSet getRuleSet(int matchType)
protected java.util.Map addToNameMap(java.util.Map map, java.lang.String name, Rule rule)
protected void removeFromNameMap(java.util.Map map, java.lang.String name, Rule rule)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |