com.atlassian.bamboo.variable
Class VariableDefinitionImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.variable.VariableDefinitionImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, VariableDefinition, VariableDefinitionContext, VariableDefinitionIdentifier, java.io.Serializable, java.lang.Cloneable

public class VariableDefinitionImpl
extends BambooEntityObject
implements VariableDefinition

See Also:
Serialized Form

Field Summary
static com.google.common.base.Function<VariableDefinition,VariableDefinition> CLONE
           
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING
 
Constructor Summary
VariableDefinitionImpl()
           
VariableDefinitionImpl(java.lang.String key, java.lang.String value, Plan plan, VariableType variableType)
           
VariableDefinitionImpl(VariableDefinition other)
           
 
Method Summary
 java.lang.Long getDeploymentVersionId()
           
 java.lang.Long getEnvironmentId()
           
 java.lang.String getKey()
          Variable key as defined in UI
 Plan getPlan()
           
 java.lang.String getValue()
          Variable value as set in UI
 VariableType getVariableType()
          VariableType shows the source of variable value as it was evaluated before build execution
 void setDeploymentVersionId(java.lang.Long deploymentVersionId)
           
 void setEnvironmentId(java.lang.Long environmentId)
           
 void setKey(java.lang.String key)
           
 void setPlan(Plan plan)
           
 void setValue(java.lang.String value)
           
 void setVariableType(VariableType variableType)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
equals, getId, hashCode, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

CLONE

public static final com.google.common.base.Function<VariableDefinition,VariableDefinition> CLONE
Constructor Detail

VariableDefinitionImpl

public VariableDefinitionImpl()

VariableDefinitionImpl

public VariableDefinitionImpl(java.lang.String key,
                              java.lang.String value,
                              Plan plan,
                              VariableType variableType)

VariableDefinitionImpl

public VariableDefinitionImpl(VariableDefinition other)
Method Detail

getKey

@NotNull
public java.lang.String getKey()
Description copied from interface: VariableDefinitionContext
Variable key as defined in UI

Specified by:
getKey in interface VariableDefinitionContext
Specified by:
getKey in interface VariableDefinitionIdentifier
Returns:
variable key

setKey

public void setKey(java.lang.String key)
Specified by:
setKey in interface VariableDefinitionContext

getValue

public java.lang.String getValue()
Description copied from interface: VariableDefinitionContext
Variable value as set in UI

Specified by:
getValue in interface VariableDefinitionContext
Specified by:
getValue in interface VariableDefinitionIdentifier

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface VariableDefinitionContext

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 interface VariableDefinitionContext
Specified by:
getVariableType in interface VariableDefinitionIdentifier
Returns:

setVariableType

public void setVariableType(VariableType variableType)
Specified by:
setVariableType in interface VariableDefinitionContext

getPlan

public Plan getPlan()
Specified by:
getPlan in interface VariableDefinition

setPlan

public void setPlan(Plan plan)
Specified by:
setPlan in interface VariableDefinition

getEnvironmentId

@Nullable
public java.lang.Long getEnvironmentId()
Specified by:
getEnvironmentId in interface VariableDefinition
Returns:
id of associated Deployment Environment or null if not of VariableType.ENVIRONMENT type

setEnvironmentId

public void setEnvironmentId(@Nullable
                             java.lang.Long environmentId)
Specified by:
setEnvironmentId in interface VariableDefinition

getDeploymentVersionId

@Nullable
public java.lang.Long getDeploymentVersionId()
Specified by:
getDeploymentVersionId in interface VariableDefinition
Returns:
id of associated Deployment Version or null if not of VariableType.VERSION type

setDeploymentVersionId

public void setDeploymentVersionId(@Nullable
                                   java.lang.Long deploymentVersionId)
Specified by:
setDeploymentVersionId in interface VariableDefinition

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.