RuleManager manages a set of rules such that a rule can be
found for a given DOM4J Node using the XSLT processing model.
| Modifier and Type | Field and Description |
|---|---|
| private int | appearenceCount
A counter so that rules can be ordered by the order in which they were added to the rule base |
| private HashMap | modes
Map of modes indexed by mode |
| private Action | valueOfAction
Holds value of property valueOfAction. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | addDefaultRules(final Mode
DOCUMENT ME! mode)Adds the default stylesheet rules to the given |
| public void | |
| public void | |
| protected Rule | |
| protected Mode | Returns: DOCUMENT ME!A factory method to return a new |
| public Rule | Returns: the matching Rule or no rule if none matchedis the name of the mode associated with the rule if any modeName, Node is the DOM4J Node to match against node)Performs an XSLT processing model match for the rule which matches the given Node the best. |
| public Mode | |
| public Action | Returns: the default value-of action which is used in the default rules for the pattern "text()|@"DOCUMENT ME! |
| public void | |
| public void | setValueOfAction(Action
DOCUMENT ME! valueOfAction)Sets the default value-of action which is used in the default rules for the pattern "text()|@" |
| appearenceCount | back to summary |
|---|---|
| private int appearenceCount A counter so that rules can be ordered by the order in which they were added to the rule base | |
| modes | back to summary |
|---|---|
| private HashMap<String, Mode> modes Map of modes indexed by mode | |
| valueOfAction | back to summary |
|---|---|
| private Action valueOfAction Holds value of property valueOfAction. | |
| RuleManager | back to summary |
|---|---|
| public RuleManager() | |
| addDefaultRule | back to summary |
|---|---|
| protected void addDefaultRule(Mode mode, Pattern pattern, Action action) | |
| addDefaultRules | back to summary |
|---|---|
| protected void addDefaultRules(final Mode mode) Adds the default stylesheet rules to the given
| |
| addRule | back to summary |
|---|---|
| public void addRule(Rule rule) | |
| clear | back to summary |
|---|---|
| public void clear() | |
| createDefaultRule | back to summary |
|---|---|
| protected Rule createDefaultRule(Pattern pattern, Action action) | |
| createMode | back to summary |
|---|---|
| protected Mode createMode() A factory method to return a new
| |
| getMatchingRule | back to summary |
|---|---|
| public Rule getMatchingRule(String modeName, Node node) Performs an XSLT processing model match for the rule which matches the given Node the best. | |
| getMode | back to summary |
|---|---|
| public Mode getMode(String modeName) DOCUMENT ME! | |
| getValueOfAction | back to summary |
|---|---|
| public Action getValueOfAction() DOCUMENT ME!
| |
| removeRule | back to summary |
|---|---|
| public void removeRule(Rule rule) | |
| setValueOfAction | back to summary |
|---|---|
| public void setValueOfAction(Action valueOfAction) Sets the default value-of action which is used in the default rules for the pattern "text()|@"
| |