org.inria.ns.reflex.processor.core
Class MainAction

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

public class MainAction
extends AbstractAction

A convenient action object used as the main logic procedure. It corresponds to the root of the XML active sheet, that is to say to the XML document.

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
 
Method Summary
 void runAction(DataSet dataSet)
          Execute the action by adding a data to the current context.
static MainAction unmarshal(Element element, ProcessorInstance processorInstance)
          XML unmarshaller for MainAction.
static MainAction unmarshal(ProcessorInstance processorInstance)
          XML unmarshaller for MainAction.
 
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

unmarshal

public static MainAction unmarshal(ProcessorInstance processorInstance)
                            throws XMLException
XML unmarshaller for MainAction.

Parameters:
doc - The DOM document to unmarshall. It must be obtained by a namespace aware parser.
processorInstance - The processor instance that drives the unmarshalling.
Returns:
The MainAction created.
Throws:
XMLException

unmarshal

public static MainAction unmarshal(Element element,
                                   ProcessorInstance processorInstance)
                            throws XMLException
XML unmarshaller for MainAction.

Parameters:
element - The element to unmarshall. It must be obtained by a namespace aware parser.
processorInstance - The processor instance that drives the unmarshalling.
Returns:
The MainAction created.
Throws:
XMLException

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Execute the action by adding a data to the current context.

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