org.inria.ns.reflex.processor.exp
Class MacroInvokerAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.exp.MacroInvokerAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class MacroInvokerAction
extends AbstractAction

The MacroInvokerAction can initialize and terminate a macro by exporting the expected return values.

Author:
Philippe Poulard
See Also:
MacroAction

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
MacroInvokerAction(Node node, AbstractAction parent)
          Create a new action.
 
Method Summary
 void addAction(AbstractAction action)
          Handles exportable datas and init actions.
 void runInitAction(ProcessorInstance pi, DataSet dataSet)
          Run the <exp:init> action, if any.
 void setExportables(DataSet source, DataSet target)
          Export some properties.
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runAction, runActions, toPrettyString, toPrettyString, toString, unmarshal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MacroInvokerAction

public MacroInvokerAction(Node node,
                          AbstractAction parent)
Create a new action.

Parameters:
node - The node.
parent - The parent.
Method Detail

addAction

public void addAction(AbstractAction action)
Handles exportable datas and init actions.

Overrides:
addAction in class AbstractAction
Parameters:
action - The action that may be <exp:exports> or <exp:init>.
See Also:
AbstractAction.addAction(org.inria.ns.reflex.processor.core.AbstractAction)

setExportables

public void setExportables(DataSet source,
                           DataSet target)
                    throws XPathException,
                           ExecutionException
Export some properties.

Parameters:
source - The source from which to take the properties.
target - The target.
Throws:
XPathException
ExecutionException

runInitAction

public void runInitAction(ProcessorInstance pi,
                          DataSet dataSet)
                   throws XPathException,
                          ExecutionException
Run the <exp:init> action, if any.

Parameters:
pi - The PI.
dataSet - The data set.
Throws:
XPathException
ExecutionException