Package step.core.variables
Class VariablesManager
- java.lang.Object
-
- step.core.variables.VariablesManager
-
public class VariablesManager extends Object
-
-
Constructor Summary
Constructors Constructor Description VariablesManager(ExecutionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getAllVariables()
List<Object>
getAllVariables(String key)
Object
getFirstVariableMatching(Pattern pattern)
Object
getFirstVariableMatching(ReportNode node, Pattern pattern)
Object
getVariable(String key)
Object
getVariable(ReportNode node, String key, boolean recursive)
Boolean
getVariableAsBoolean(String key)
Boolean
getVariableAsBoolean(String key, boolean default_)
Integer
getVariableAsInteger(String key)
Integer
getVariableAsInteger(String key, Integer default_)
String
getVariableAsString(String key)
String
getVariableAsString(String key, String default_)
void
putVariable(ReportNode targetNode, String key, Object value)
void
putVariable(ReportNode targetNode, VariableType type, String key, Object value)
void
releaseVariables(String nodeId)
void
removeVariable(ReportNode node, String key)
void
updateVariable(String key, Object value)
-
-
-
Constructor Detail
-
VariablesManager
public VariablesManager(ExecutionContext context)
-
-
Method Detail
-
removeVariable
public void removeVariable(ReportNode node, String key)
-
updateVariable
public void updateVariable(String key, Object value) throws ImmutableVariableException
- Throws:
ImmutableVariableException
-
putVariable
public void putVariable(ReportNode targetNode, String key, Object value)
-
putVariable
public void putVariable(ReportNode targetNode, VariableType type, String key, Object value)
-
getVariableAsString
public String getVariableAsString(String key)
- Parameters:
key
- key- Throws:
UndefinedVariableException
- if the variable is undefined
-
getVariableAsInteger
public Integer getVariableAsInteger(String key)
- Throws:
UndefinedVariableException
- if the variable is undefined
-
getVariableAsBoolean
public Boolean getVariableAsBoolean(String key)
- Throws:
UndefinedVariableException
- if the variable is undefined
-
getVariable
public Object getVariable(ReportNode node, String key, boolean recursive)
-
getFirstVariableMatching
public Object getFirstVariableMatching(ReportNode node, Pattern pattern)
-
releaseVariables
public void releaseVariables(String nodeId)
-
-