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

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

public class MacroAction
extends AbstractAction

At runtime, the MacroAction defines an element backed by an inline implementation.

A macro action is registered when a module definition uses <exp:element> without the source attribute.

Notice that this macro action may use 2 set of actions :

Author:
Philippe Poulard
See Also:
MacroInvokerAction

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
 
Method Summary
 void runAction(DataSet dataSet)
          Execute the action by preparing the $exp:param property and calling its subactions.
 
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
 

Method Detail

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Execute the action by preparing the $exp:param property and calling its subactions. After execution, the previous $exp:param property is restored.

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