Package com.atlassian.bamboo.variable
Interface VariableDefinitionContext
- All Superinterfaces:
Serializable,VariableDefinitionIdentifier
- All Known Subinterfaces:
StageVariableContext,VariableDefinition
- All Known Implementing Classes:
StageVariableContextImpl,SubstitutedVariableDefinitionContextImpl,VariableDefinitionContextImpl,VariableDefinitionImpl
@PublicApi
public interface VariableDefinitionContext
extends VariableDefinitionIdentifier, Serializable
Light version of
VariableDefinition class, that could be passed to the agent inside BuildContext
The purpose of this interface is to pass currently evaluated variable context.
Agent code use this during variable substitution process-
Field Summary
Fields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetKey()Variable key as defined in UI@NotNull StringgetValue()Variable value as set in UIVariableTypeshows the source of variable value as it was evaluated before build executionvoidvoidvoidsetVariableType(VariableType variableType)
-
Method Details
-
getKey
Variable key as defined in UI- Specified by:
getKeyin interfaceVariableDefinitionIdentifier- Returns:
- variable key
-
setKey
-
getValue
Variable value as set in UI- Specified by:
getValuein interfaceVariableDefinitionIdentifier- Returns:
-
setValue
-
getVariableType
VariableType getVariableType()VariableTypeshows the source of variable value as it was evaluated before build execution- Specified by:
getVariableTypein interfaceVariableDefinitionIdentifier- Returns:
-
setVariableType
-