org.inria.ns.reflex.processor.exp
Class ModuleAction
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.exp.ModuleAction
- All Implemented Interfaces:
- Executable, Presentable, NamespaceContextFactory
public class ModuleAction
- extends AbstractAction
The <exp:module> element creates a module definition.
Notice that the module is predefined while unmarshalling (that is to
say, everything inside the tag is unmarshalled, but the module action
is not populated), except if it refers to an external source file.
- Author:
- Philippe Poulard
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 |
ModuleAction
public ModuleAction(Node node,
AbstractAction parent)
- Creates a new instance of
ModuleAction
.
- 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.
unmarshal
public static AbstractAction unmarshal(AbstractAction parent,
Element element)
throws XMLException
- XML unmarshaller for
ModuleAction
.
- Parameters:
parent
- The action depending fromelement
- The XML element to unmarshall.
- Returns:
- The
ModuleAction
created.
- Throws:
UnmarshalException
- When the element and its content is not those expected.
XMLException
runAction
public void runAction(DataSet dataSet)
throws ExecutionException,
XPathException
- Set the current object with the module if the <exp:module>
is the root element.
- 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
populateModule
public void populateModule(DataSet dataSet)
throws ExecutionException,
XPathException
- Populates the module wrapped by this action.
- Parameters:
dataSet
- The set of datas used when the action is running.
- Throws:
ExecutionException
XPathException