public class Script_Switch extends Script_Event
Script_Case statements as sub-events. An activity is evaluated and
compared to a set of conditions. The true condition returns the effector statement.subEvents, varMapfilter, function, operation, sourceid, internalID, keyLong, name, namespace, objType, parentElement, value| Constructor and Description |
|---|
Script_Switch(org.licas_xml.abs.Element autoXml)
Create a new instance of Script_Switch and add the xml-based description of the
element values.
|
Script_Switch(java.lang.String scriptType,
java.lang.String elemID)
Create a new instance of Script_Switch.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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_Switch(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_Switch(org.licas_xml.abs.Element autoXml)
throws java.lang.Exception
autoXml - the xml-based description of values to add.java.lang.Exception - any error.protected 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
source - 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 correct.java.lang.Exception - any error.