public interface ScopedVariableMap
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Interface and Description |
---|---|
static class |
ScopedVariableMap.Scope
Variable visibility scopes.
|
static class |
ScopedVariableMap.Var
Variable class.
|
Modifier and Type | Method and Description |
---|---|
ScopedVariableMap.Var |
get(Object name,
Object owner,
ScopedVariableMap.Scope[] scope) |
ScopedVariableMap.Var |
getGlobal(Object name)
Get a global variable.
|
List<String> |
getGlobalVariables()
Get all global variables.
|
ScopedVariableMap.Scope |
parseScope(String scope)
Parse scope from a string (not case sensitive).
|
void |
put(Object name,
Object value,
Object owner,
ScopedVariableMap.Scope scope)
Create a variable.
|
ScopedVariableMap.Var |
remove(Object name,
Object owner,
ScopedVariableMap.Scope scope)
Remove a global variable.
|
ScopedVariableMap.Scope parseScope(String scope) throws IllegalArgumentException
scope
- a scope as String.IllegalArgumentException
- when the string does not represent a
known scope.ScopedVariableMap.Var getGlobal(Object name)
name
- variable name.ScopedVariableMap.Var get(Object name, Object owner, ScopedVariableMap.Scope[] scope)
void put(Object name, Object value, Object owner, ScopedVariableMap.Scope scope)
name
- variable name.value
- variable value.owner
- variable the owner Id used to identify whether the variable
is within the specified scope, for example the executing workitem Id.scope
- the scope.ScopedVariableMap.Var remove(Object name, Object owner, ScopedVariableMap.Scope scope)
name
- variable name.owner
- variable the owner Id used to identify whether the variable
is within the specified scope, for example the executing workitem Id.scope
- the scope.