org.inria.ns.reflex.processor.asl
Class UseAction

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

public class UseAction
extends AbstractAction

The <asl:use> element indicates to use an identifiable element.

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
UseAction(AbstractAction actionToUse, Element element, AbstractAction parent)
          Creates a new instance of UseAction.
UseAction(QName refId, Element element, AbstractAction parent)
          Creates a new instance of UseAction.
 
Method Summary
 void runAction(DataSet dataSet)
          Run the action to use.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for StepAction.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UseAction

public UseAction(QName refId,
                 Element element,
                 AbstractAction parent)
Creates a new instance of UseAction.

Parameters:
refId - The ID of the action to use.
element - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.

UseAction

public UseAction(AbstractAction actionToUse,
                 Element element,
                 AbstractAction parent)
Creates a new instance of UseAction.

Parameters:
actionToUse - The action to use.
element - 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

unmarshal

public static AbstractAction unmarshal(AbstractAction parent,
                                       Element element)
                                throws XMLException
XML unmarshaller for StepAction.

Parameters:
parent - The action depending from.
element - The XML element to unmarshall.
Returns:
The ElementAction created.
Throws:
UnmarshalException - When the element and its content is not those expected.
XMLException

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Run the action to use.

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