com.atlassian.bamboo.build
Class PlanDependencyImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.build.PlanDependencyImpl
All Implemented Interfaces:
PlanDependency, BambooObject, java.lang.Cloneable, java.lang.Comparable<PlanDependencyImpl>

public class PlanDependencyImpl
extends BambooEntityObject
implements PlanDependency, java.lang.Comparable<PlanDependencyImpl>


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.build.PlanDependency
AUTOMATIC_DEP_KEY, DEFAULT_DEP_KEY
 
Constructor Summary
PlanDependencyImpl()
           
PlanDependencyImpl(Plan parentPlan, Plan childPlan)
           
PlanDependencyImpl(java.lang.String dependencyType, Plan parentPlan, Plan childPlan)
           
 
Method Summary
 int compareTo(PlanDependencyImpl o)
           
 boolean equals(java.lang.Object o)
           
 Plan getChildPlan()
           
 java.lang.String getDependencyType()
          Get the unique key representing the dependency type.
 Plan getParentPlan()
           
 int hashCode()
           
 boolean isEditable()
          Can the user edit this dependency?
 void setChildPlan(Plan childPlan)
           
 void setDependencyType(java.lang.String key)
           
 void setParentPlan(Plan parentPlan)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, 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
 

Constructor Detail

PlanDependencyImpl

public PlanDependencyImpl()

PlanDependencyImpl

public PlanDependencyImpl(Plan parentPlan,
                          Plan childPlan)

PlanDependencyImpl

public PlanDependencyImpl(java.lang.String dependencyType,
                          Plan parentPlan,
                          Plan childPlan)
Method Detail

getChildPlan

@Nullable
public Plan getChildPlan()
Specified by:
getChildPlan in interface PlanDependency
Returns:
the child plan in this dependency relationship

setChildPlan

public void setChildPlan(Plan childPlan)

getParentPlan

@Nullable
public Plan getParentPlan()
Specified by:
getParentPlan in interface PlanDependency
Returns:
the parent plan in this dependency relationship

setParentPlan

public void setParentPlan(Plan parentPlan)

isEditable

public boolean isEditable()
Description copied from interface: PlanDependency
Can the user edit this dependency?

Specified by:
isEditable in interface PlanDependency
Returns:
true if the user can remove/change this dependency

getDependencyType

public java.lang.String getDependencyType()
Description copied from interface: PlanDependency
Get the unique key representing the dependency type. Use this to differentiate groups of dependencies from one another

Specified by:
getDependencyType in interface PlanDependency
Returns:
String representation of the dependency type

setDependencyType

public void setDependencyType(java.lang.String key)

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

compareTo

public int compareTo(PlanDependencyImpl o)
Specified by:
compareTo in interface java.lang.Comparable<PlanDependencyImpl>

toString

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


Copyright © 2011 Atlassian. All Rights Reserved.