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

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

public class ExportsAction
extends AbstractAction

The <exp:exports> element is a simple container for <exp:export> elements.

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
ExportsAction(Expression context, Expression current, Element element, AbstractAction parent)
          Creates a new instance of ExportsAction.
 
Method Summary
 void setExportables(DataSet source, DataSet target)
          Export some properties.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for ExportsAction.
 
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, runAction, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExportsAction

public ExportsAction(Expression context,
                     Expression current,
                     Element element,
                     AbstractAction parent)
              throws XMLException
Creates a new instance of ExportsAction.

Parameters:
context - The value of the context to export.
current - The value of the current object to export.
element - The element from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Throws:
XMLException - When an error occurs.
Method Detail

unmarshal

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

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

setExportables

public void setExportables(DataSet source,
                           DataSet target)
                    throws XPathException,
                           ExecutionException
Export some properties. Might also export to the target data set a current object and a context.

Parameters:
source - The source data set to export from.
target - The target data set to export to.
Throws:
XPathException
ExecutionException