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.
| Modifier and Type | Field and Description |
|---|---|
| private Map | attributeNameRuleSets
Map of exact (local) attribute names to RuleSet instances |
| private Map | elementNameRuleSets
Map of exact (local) element names to RuleSet instances |
| private RuleSet[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected Map | |
| public void | |
| public void | |
| public void | |
| public Rule | Returns: the matching Rule or no rule if none matchedis the DOM4J Node to match against node)Performs an XSLT processing model match for the rule which matches the given Node the best. |
| protected RuleSet | Returns: the RuleSet for the given matching type. This method will never return null, a new instance will be created.DOCUMENT ME! matchType)DOCUMENT ME! |
| protected void | |
| public void |
| attributeNameRuleSets | back to summary |
|---|---|
| private Map<String, RuleSet> attributeNameRuleSets Map of exact (local) attribute names to RuleSet instances | |
| elementNameRuleSets | back to summary |
|---|---|
| private Map<String, RuleSet> elementNameRuleSets Map of exact (local) element names to RuleSet instances | |
| ruleSets | back to summary |
|---|---|
| private RuleSet[] ruleSets | |
| Mode | back to summary |
|---|---|
| public Mode() | |
| addRule | back to summary |
|---|---|
| public void addRule(Rule rule) | |
| addToNameMap | back to summary |
|---|---|
| protected Map Adds the Rule to a RuleSet for the given name. | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Element element) throws Exception | |
| applyTemplates | back to summary |
|---|---|
| public void applyTemplates(Document document) throws Exception | |
| fireRule | back to summary |
|---|---|
| public void fireRule(Node node) throws Exception Runs the actions associated with the given node | |
| getMatchingRule | back to summary |
|---|---|
| public Rule getMatchingRule(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best. | |
| getRuleSet | back to summary |
|---|---|
| protected RuleSet getRuleSet(int matchType) DOCUMENT ME!
| |
| removeFromNameMap | back to summary |
|---|---|
| protected void removeFromNameMap(Map<String, RuleSet> map, String name, Rule rule) | |
| removeRule | back to summary |
|---|---|
| public void removeRule(Rule rule) | |