org.inria.ns.reflex.processor.asl
Class InterimStepAction.InterimAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.core.AbstractFeedAction
          extended by org.inria.ns.reflex.processor.asl.InterimStepAction.InterimAction
All Implemented Interfaces:
Executable, Identifiable, Presentable, NamespaceContextFactory
Enclosing class:
InterimStepAction

public class InterimStepAction.InterimAction
extends AbstractFeedAction
implements Identifiable

An interim step has two facets : this context-feeder, and a STEP action (the InterimStepAction outer class).

At runtime, the InterimAction feeds the context with the InterimStepAction outer class.

The InterimStepAction class is the facet of the interim step that is invoked when a matcher matches.

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
InterimStepAction.InterimAction(Element element, AbstractAction parent)
          Creates a new instance of InterimAction linked to an instance of InterimStepAction.
 
Method Summary
 Object getData(DataSet dataSet)
          Return the STEP facet of this action, that will feed the context.
 QName getId()
          The identifier of the underlying step of this action.
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractFeedAction
runAction
 
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

InterimStepAction.InterimAction

public InterimStepAction.InterimAction(Element element,
                                       AbstractAction parent)
                                throws XPathException
Creates a new instance of InterimAction linked to an instance of InterimStepAction.

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.
Throws:
XPathException
Method Detail

getId

public QName getId()
The identifier of the underlying step of this action.

Specified by:
getId in interface Identifiable
Returns:
The ID of this object.
See Also:
Identifiable.getId()

getData

public Object getData(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Return the STEP facet of this action, that will feed the context.

Specified by:
getData in class AbstractFeedAction
Parameters:
dataSet - The set of datas used when the name is computed.
Returns:
The interim step.
Throws:
ExecutionException - If the computation can't be performed.
XPathException