com.atlassian.bamboo.v2.build.agent.capability
Class AbstractCapabilityType

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
All Implemented Interfaces:
CapabilityType, java.lang.Comparable<CapabilityType>
Direct Known Subclasses:
BuilderCapabilityType, GenericCapabilityType, JdkCapabilityType, PerforceCapabilityType

public abstract class AbstractCapabilityType
extends java.lang.Object
implements CapabilityType

All subclassses should have the same implementation of equals & comapreTo


Constructor Summary
AbstractCapabilityType()
           
 
Method Summary
 int compareTo(CapabilityType o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getViewTypeAction()
          The action name of the list view action of this capability type
 int hashCode()
           
 java.lang.String toString()
           
 void updatePlanForNewLabel(Build plan, java.lang.String label)
          Perform custom work when the key has been updated.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType
getCapability, getCapabilityTypeKey, getCapabilityTypeLabel, getExtraInfo, getLabel, getNewKeyFromLabel, getSortOrder, getValueDescriptionKey, isAllowRename, validate
 

Constructor Detail

AbstractCapabilityType

public AbstractCapabilityType()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

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

toString

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

getViewTypeAction

@Nullable
public java.lang.String getViewTypeAction()
Description copied from interface: CapabilityType
The action name of the list view action of this capability type

Specified by:
getViewTypeAction in interface CapabilityType
Returns:

updatePlanForNewLabel

public void updatePlanForNewLabel(@NotNull
                                  Build plan,
                                  @NotNull
                                  java.lang.String label)
Description copied from interface: CapabilityType
Perform custom work when the key has been updated. The label passed is the new label

Specified by:
updatePlanForNewLabel in interface CapabilityType


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.