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 String
getKey()
Variable key as defined in UI@NotNull String
getValue()
Variable value as set in UIVariableType
shows the source of variable value as it was evaluated before build executionvoid
void
void
setVariableType
(VariableType variableType)
-
Method Details
-
getKey
Variable key as defined in UI- Specified by:
getKey
in interfaceVariableDefinitionIdentifier
- Returns:
- variable key
-
setKey
-
getValue
Variable value as set in UI- Specified by:
getValue
in interfaceVariableDefinitionIdentifier
- Returns:
-
setValue
-
getVariableType
VariableType getVariableType()VariableType
shows the source of variable value as it was evaluated before build execution- Specified by:
getVariableType
in interfaceVariableDefinitionIdentifier
- Returns:
-
setVariableType
-