org.inria.ns.reflex.processor.core
Class NoAction
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.core.NoAction
- All Implemented Interfaces:
- Executable, Presentable, NamespaceContextFactory
- Direct Known Subclasses:
- LogicAction
public class NoAction
- extends AbstractAction
At runtime, the NoAction
does nothing. It may be used as a
convenient action when unmarshalling. Actually, when none action is required,
the null value must not be returned since an instance is always required.
- 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 |
NO_ACTION
public static final StaticAction NO_ACTION
- A default static action that does nothing.
NoAction
public NoAction(Node node,
AbstractAction parent)
- Creates a new instance of
NoAction
.
- 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 e)
throws XMLException
- XML unmarshaller for
NoAction
.
- Parameters:
parent
- The action depending frome
- The XML element to unmarshall.
- Returns:
- The
NoAction
created.
- Throws:
UnmarshalException
- When the element and its content is not those expected.
XMLException
runAction
public void runAction(DataSet dataSet)
throws ExecutionException,
XPathException
- Do nothing.
- 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