org.inria.ns.reflex.processor.xcl
Class RuleSetAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.xcl.RuleAction
          extended by org.inria.ns.reflex.processor.xcl.RuleSetAction
All Implemented Interfaces:
Executable, Presentable, Rule, RuleSet, NamespaceContextFactory

public class RuleSetAction
extends RuleAction
implements RuleSet

A RuleSetAction is made with a union pattern that can be splitted in independant rules.

Author:
Philippe Poulard
See Also:
getRules()

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.filter.Rule
Rule.XPathPattern
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Fields inherited from interface org.inria.ns.reflex.xml.filter.Rule
APPLY_RULES_ACTION, COMPARATOR, DEFAULT_RULE_ACTION, DEFAULT_RULES, REMOVE_NODES_RULE, REMOVE_RULE
 
Constructor Summary
RuleSetAction(Pattern pattern, Double priority, List patterns, Boolean normalize, Node node, AbstractAction parent)
          Create a new RuleAction.
 
Method Summary
 List getRules()
          Split the rules from this set.
 
Methods inherited from class org.inria.ns.reflex.processor.xcl.RuleAction
getPriority, normalize, test, toString, unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runAction, runActions, toPrettyString, toPrettyString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.structures.Executable
run
 

Constructor Detail

RuleSetAction

public RuleSetAction(Pattern pattern,
                     Double priority,
                     List patterns,
                     Boolean normalize,
                     Node node,
                     AbstractAction parent)
Create a new RuleAction.

Parameters:
pattern - The non-null union pattern from which this part was extracted.
priority - The priority of this rule if it is explicitely given, or null.
patterns - The non-null list of patterns.
normalize - true if the text nodes within the node that matches must be merged, false otherwise, and null if not specified (use the default value).
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Method Detail

getRules

public List getRules()
Split the rules from this set.

Specified by:
getRules in interface RuleSet
Returns:
A list of rules.
See Also:
RuleSet.getRules()