org.inria.ns.reflex.processor.xcl
Class ContinueAction
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.xcl.ContinueAction
- All Implemented Interfaces:
- Executable, Presentable, NamespaceContextFactory
public class ContinueAction
- extends AbstractAction
The <xcl:continue> element continue the execution at
the beginning of the current iteration
(LoopAction
or ForEachAction
).
<xcl:loop test="{expression}">
<!-- do something -->
<xcl:if test="{expression}">
<xcl:then>
<continue/>
</xcl:then>
</xcl:if">
<!-- do something -->
</xcl:loop>
- Author:
- Philippe Poulard
- See Also:
LoopAction
,
ForEachAction
,
BreakAction
,
ContinueException
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 |
ContinueAction
public ContinueAction(Node node,
AbstractAction parent)
- Creates a new instance of
ContinueAction
.
- 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
ContinueAction
.
- Parameters:
parent
- The action depending frome
- The XML element to unmarshall.
- Returns:
- The
ContinueAction
created.
- Throws:
UnmarshalException
- When the element and its content is not those expected.
XMLException
runAction
public void runAction(DataSet dataSet)
throws ExecutionException,
XPathException
- Execute the action by launching a
ContinueException
.
- 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
- See Also:
ContinueException