public class Script_SwitchFalse extends Script_Switch
Script_Switch to be specifically for false case results only.
Each sub-event is executed in sequence until a false Condition result is realised.
The effector for that false result is then returned to the program. This specific case has
added methods to allow you to add the sub-event Script_Case statements automatically
and will set some of the case values.subEvents, varMapfilter, function, operation, sourceid, internalID, keyLong, name, namespace, objType, parentElement, value| Constructor and Description |
|---|
Script_SwitchFalse(org.licas_xml.abs.Element autoXml)
Create a new instance of Script_Switch and add the xml-based description of the
element values.
|
Script_SwitchFalse(java.lang.String scriptType,
java.lang.String elemID)
Create a new instance of Script_Switch.
|
| Modifier and Type | Method and Description |
|---|---|
Script_Case |
addCase(java.lang.String source,
java.lang.String operation,
Script_Variable vars,
java.lang.String filter,
Script_Event effector)
Create and add a new case statement to this switch statement.
|
addEvent, addVariable, getEvents, getVariables, setForUse, toXml, usesSubEventsgetFilter, getFunction, getOperation, getSource, setFilter, setFunction, setOperation, setSourcegetID, getInternalID, getName, getNamespace, getObjType, getParent, getScriptUuid, getValue, processThis, setNamespace, setObjType, setParent, setValue, setValuepublic Script_SwitchFalse(java.lang.String scriptType,
java.lang.String elemID)
scriptType - the script element type. This is also the element tag name
and should not be null.elemID - this is the external id used to identify this element specifically. The
element is also stored under this value and so it cannot be null.public Script_SwitchFalse(org.licas_xml.abs.Element autoXml)
throws java.lang.Exception
autoXml - the xml-based description of values to add.java.lang.Exception - any error.public Script_Case addCase(java.lang.String source, java.lang.String operation, Script_Variable vars, java.lang.String filter, Script_Event effector) throws java.lang.Exception
false. The other values can be passed
in as parameters or set later in the returned case statement. So any parameter can be
null here and set later.addCase in class Script_Switchsource - reference to the source to execute the operation on.operation - name of the method or operation to execute for the case.vars - variable(s) that the operation might use.filter - filter reference to filter any operation reply with.effector - return this effector event if the case statement is false.java.lang.Exception - any error.