@NotThreadSafe public class VariableContextImpl extends Object implements VariableContext
Constructor and Description |
---|
VariableContextImpl(Map<String,VariableDefinitionContext> definitions) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalVariable(String key,
String value)
Add generated local (a.k.a CUSTOM) variable to this context.
|
void |
addResultVariable(String key,
String value)
Add generated result variable to this context.
|
Map<String,VariableDefinitionContext> |
getEffectiveVariables()
Effective state of the variables.
|
Map<String,VariableDefinitionContext> |
getOriginalVariables()
The original state of variables in this context, that is, the state as it
was when execution of job (environment) started.
|
List<VariableDefinitionContext> |
getPasswordVariables()
Get all variables in current context that are considered "password" variables, i.e.
|
Map<String,VariableDefinitionContext> |
getResultVariables() |
Map<String,VariableSubstitutionContext> |
getSubstitutions() |
void |
removeLocalVariable(String key) |
public VariableContextImpl(Map<String,VariableDefinitionContext> definitions)
@NotNull public Map<String,VariableSubstitutionContext> getSubstitutions()
getSubstitutions
in interface VariableContext
@NotNull public Map<String,VariableDefinitionContext> getOriginalVariables()
VariableContext
getOriginalVariables
in interface VariableContext
@NotNull public Map<String,VariableDefinitionContext> getEffectiveVariables()
VariableContext
getEffectiveVariables
in interface VariableContext
@NotNull public Map<String,VariableDefinitionContext> getResultVariables()
getResultVariables
in interface VariableContext
public void addResultVariable(@NotNull String key, @NotNull String value)
VariableContext
addResultVariable
in interface VariableContext
public void addLocalVariable(@NotNull String key, @NotNull String value)
VariableContext
addLocalVariable
in interface VariableContext
public void removeLocalVariable(@NotNull String key)
removeLocalVariable
in interface VariableContext
public List<VariableDefinitionContext> getPasswordVariables()
VariableContext
getPasswordVariables
in interface VariableContext
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.