Package com.atlassian.bamboo.variable
Class VariableDefinitionContextImpl
- java.lang.Object
-
- com.atlassian.bamboo.variable.VariableDefinitionContextImpl
-
- All Implemented Interfaces:
VariableDefinitionContext
,VariableDefinitionIdentifier
,Serializable
public final class VariableDefinitionContextImpl extends Object implements VariableDefinitionContext
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<VariableDefinitionContext,VariableDefinitionContext>
CLONE
-
Fields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING
-
-
Constructor Summary
Constructors Constructor Description VariableDefinitionContextImpl(VariableDefinitionContext variableDefinitionContext)
VariableDefinitionContextImpl(String key, String value, VariableType variableType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull String
getKey()
Variable key as defined in UIString
getValue()
Variable value as set in UIVariableType
getVariableType()
VariableType
shows the source of variable value as it was evaluated before build executionint
hashCode()
void
setKey(String key)
void
setValue(String value)
void
setVariableType(VariableType variableType)
String
toString()
-
-
-
Field Detail
-
CLONE
public static final com.google.common.base.Function<VariableDefinitionContext,VariableDefinitionContext> CLONE
-
-
Constructor Detail
-
VariableDefinitionContextImpl
public VariableDefinitionContextImpl(VariableDefinitionContext variableDefinitionContext)
-
VariableDefinitionContextImpl
public VariableDefinitionContextImpl(String key, String value, VariableType variableType)
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:VariableDefinitionContext
Variable key as defined in UI- Specified by:
getKey
in interfaceVariableDefinitionContext
- Specified by:
getKey
in interfaceVariableDefinitionIdentifier
- Returns:
- variable key
-
getValue
public String getValue()
Description copied from interface:VariableDefinitionContext
Variable value as set in UI- Specified by:
getValue
in interfaceVariableDefinitionContext
- Specified by:
getValue
in interfaceVariableDefinitionIdentifier
-
setKey
public void setKey(String key)
- Specified by:
setKey
in interfaceVariableDefinitionContext
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfaceVariableDefinitionContext
-
getVariableType
public VariableType getVariableType()
Description copied from interface:VariableDefinitionContext
VariableType
shows the source of variable value as it was evaluated before build execution- Specified by:
getVariableType
in interfaceVariableDefinitionContext
- Specified by:
getVariableType
in interfaceVariableDefinitionIdentifier
- Returns:
-
setVariableType
public void setVariableType(VariableType variableType)
- Specified by:
setVariableType
in interfaceVariableDefinitionContext
-
-