com.atlassian.bamboo.build
Class PlanDependencyImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.build.PlanDependencyImpl
- All Implemented Interfaces:
- PlanDependency, BambooIdProvider, BambooObject, java.lang.Cloneable, java.lang.Comparable<PlanDependencyImpl>
public class PlanDependencyImpl
- extends BambooEntityObject
- implements PlanDependency, java.lang.Comparable<PlanDependencyImpl>
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 |
PlanDependencyImpl
public PlanDependencyImpl()
PlanDependencyImpl
public PlanDependencyImpl(Plan parentPlan,
Plan childPlan)
PlanDependencyImpl
public PlanDependencyImpl(java.lang.String dependencyType,
Plan parentPlan,
Plan childPlan)
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 © 2012 Atlassian. All Rights Reserved.