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

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.exp.ExportAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class ExportAction
extends AbstractFeedAction

The <exp:export> element adds a parameter to the current parameter context.

Author:
Philippe Poulard
See Also:
InvokeAction, Exportable

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
ExportAction(int scope, QExpression name, Expression value, Node node, AbstractAction parent)
          Creates a new instance of ExportAction.
 
Method Summary
 Object getData(DataSet dataSet)
          Return the data that will feed the context : an exportable property.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for ExportAction.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExportAction

public ExportAction(int scope,
                    QExpression name,
                    Expression value,
                    Node node,
                    AbstractAction parent)
Creates a new instance of ExportAction.

Parameters:
scope - The scope of the property.
name - The name of the property.
value - The value of the property, as an Expression.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
See Also:
CoreNames.LOCAL_SCOPE, CoreNames.GLOBAL_SCOPE, CoreNames.SHARED_SCOPE
Method Detail

unmarshal

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

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

getData

public Object getData(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Return the data that will feed the context : an exportable property.

Specified by:
getData in class AbstractFeedAction
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
See Also:
AbstractFeedAction.getData(org.inria.ns.reflex.processor.DataSet), Exportable