@NotThreadSafe public class VariableContextImpl extends Object implements VariableContext
Constructor and Description |
---|
VariableContextImpl(Map<String,VariableDefinitionContext> definitions) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalVariable(@NotNull String key,
@NotNull String value)
Add generated local (a.k.a CUSTOM) variable to this context.
|
void |
addResultVariable(@NotNull String key,
@NotNull String value)
Add generated result variable to this context.
|
@NotNull Map<String,VariableDefinitionContext> |
getEffectiveVariables()
Effective state of the variables.
|
@NotNull 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.
|
@NotNull Map<String,VariableDefinitionContext> |
getResultVariables() |
@NotNull Map<String,VariableSubstitutionContext> |
getSubstitutions() |
void |
removeLocalVariable(@NotNull String key) |
public VariableContextImpl(Map<String,VariableDefinitionContext> definitions)
@NotNull public @NotNull Map<String,VariableSubstitutionContext> getSubstitutions()
getSubstitutions
in interface VariableContext
@NotNull public @NotNull Map<String,VariableDefinitionContext> getOriginalVariables()
VariableContext
getOriginalVariables
in interface VariableContext
@NotNull public @NotNull Map<String,VariableDefinitionContext> getEffectiveVariables()
VariableContext
getEffectiveVariables
in interface VariableContext
@NotNull public @NotNull Map<String,VariableDefinitionContext> getResultVariables()
getResultVariables
in interface VariableContext
public void addResultVariable(@NotNull @NotNull String key, @NotNull @NotNull String value)
VariableContext
addResultVariable
in interface VariableContext
public void addLocalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value)
VariableContext
addLocalVariable
in interface VariableContext
public void removeLocalVariable(@NotNull @NotNull String key)
removeLocalVariable
in interface VariableContext
public List<VariableDefinitionContext> getPasswordVariables()
VariableContext
getPasswordVariables
in interface VariableContext
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.