org.inria.ns.reflex.processor.core
Class AbstractFeedAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.core.AbstractFeedAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
AbstractDefinitionAction, AssertAction, ExportAction, InterimStepAction.InterimAction, XMLAction

public abstract class AbstractFeedAction
extends AbstractAction

An action that produces a data that feeds the current context.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
AbstractFeedAction(Node node, AbstractAction parent)
          Creates a new instance of AbstractFeedAction.
 
Method Summary
abstract  Object getData(DataSet dataSet)
          Return the data that will feed the context.
 void runAction(DataSet dataSet)
          Execute the action by adding a data to the current context.
 
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, runActions, toPrettyString, toPrettyString, toString, unmarshal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractFeedAction

public AbstractFeedAction(Node node,
                          AbstractAction parent)
Creates a new instance of AbstractFeedAction.

Parameters:
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

getData

public abstract Object getData(DataSet dataSet)
                        throws ExecutionException,
                               XPathException
Return the data that will feed the context.

Parameters:
dataSet - The set of datas used when the name is computed.
Returns:
The computed data.
Throws:
ExecutionException - If the computation can't be performed.
XPathException

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Execute the action by adding a data to the current context.

Overrides:
runAction in class AbstractAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.
XPathException