ControlVariables Class
Stores the variables used in step evaluators
Item Index
Methods
Methods
clear
()
Clear the control variables collection
get
(
Any
-
name
Gets a variable value
Parameters:
-
name
StringThe variable name
Returns:
Any:
The variable value
getNameValuePair
(
Object
-
name
Gets a pair with name and value
Parameters:
-
name
StringThe variable name
Returns:
Object:
A pair with the variable name and value
isDefined
(
Boolean
-
name
Checks if some variable is already defined
Parameters:
-
name
StringThe variable name
Returns:
Boolean:
A boolean indicating if the variable is already defined
remove
(
Object
-
name
Remove some variable from the control variables collection
Parameters:
-
name
StringThe variable name
Returns:
Object:
A pair with the removed variable name and value
set
(
String
-
name
-
value
Sets a variable value
Parameters:
-
name
StringThe variable name
-
value
StringThe variable value
Returns:
String:
A formatted key=value pair representing the defined variable
setIfUndefined
(
String
-
name
-
value
Sets a variable if not defined yet
Parameters:
-
name
StringThe variable name
-
value
StringThe variable value
Returns:
String:
A formatted key=value pair representing the defined variable