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 ofVariableDefinitionclass, that could be passed to the agent insideBuildContextThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull StringgetKey()Variable key as defined in UI@NotNull StringgetValue()Variable value as set in UIVariableTypegetVariableType()VariableTypeshows the source of variable value as it was evaluated before build executionvoidsetKey(String key)voidsetValue(@NotNull String value)voidsetVariableType(VariableType variableType)
-
-
-
Method Detail
-
getKey
@NotNull @NotNull String getKey()
Variable key as defined in UI- Specified by:
getKeyin interfaceVariableDefinitionIdentifier- Returns:
- variable key
-
setKey
void setKey(String key)
-
getValue
@NotNull @NotNull String getValue()
Variable value as set in UI- Specified by:
getValuein interfaceVariableDefinitionIdentifier- Returns:
-
setValue
void setValue(@NotNull @NotNull String value)
-
getVariableType
VariableType getVariableType()
VariableTypeshows the source of variable value as it was evaluated before build execution- Specified by:
getVariableTypein interfaceVariableDefinitionIdentifier- Returns:
-
setVariableType
void setVariableType(VariableType variableType)
-
-