|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.gpe.clients.api.workflow.Switch
public class Switch
The selection construct. The execution branch is selected for which the
marking boolean XPath expression returns true
.
Nested Class Summary | |
---|---|
static class |
Switch.Case
The representation of the code branch with the condition to be tested in order to execute the branch. |
Constructor Summary | |
---|---|
Switch(Switch.Case[] cases,
Action otherwise)
Create the selection construct. |
Method Summary | |
---|---|
void |
emitCode(Scope scope,
org.w3c.dom.Element target)
Emit the piece of code corresponding to the current action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Switch(Switch.Case[] cases, Action otherwise)
cases
- the list of code branches with predicate expressionsotherwise
- the action to be performed in the case when all the predicates yield false
Method Detail |
---|
public void emitCode(Scope scope, org.w3c.dom.Element target) throws java.lang.Exception
Action
emitCode
in interface Action
scope
- The variable scope of the workflowtarget
- The XML DOM element to append the action code to
java.lang.Exception
- In a case of error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |