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

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.CapabilityGroup
All Implemented Interfaces:
java.lang.Comparable<CapabilityGroup>

public class CapabilityGroup
extends java.lang.Object
implements java.lang.Comparable<CapabilityGroup>

UI only helper class for the Capability object. Represents a group of capabilties by type.


Constructor Summary
CapabilityGroup(CapabilityType capabilityType, com.opensymphony.xwork.TextProvider textProvider)
           
 
Method Summary
 void addCapability(Capability capability, CapabilityType capabilityType, ReadOnlyCapabilitySet parentCapabilitySet)
           
 void addRequirement(Requirement requirement, CapabilityType capabilityType)
           
 void addRequirement(Requirement requirement, CapabilityType capabilityType, Build build)
           
 int compareTo(CapabilityGroup o)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<DecoratedCapabilityRequirement> getDecoratedObjects()
           
 java.lang.String getTypeKey()
           
 java.lang.String getTypeLabel()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityGroup

public CapabilityGroup(CapabilityType capabilityType,
                       com.opensymphony.xwork.TextProvider textProvider)
Method Detail

getTypeKey

public java.lang.String getTypeKey()

getTypeLabel

public java.lang.String getTypeLabel()

getDecoratedObjects

public java.util.List<DecoratedCapabilityRequirement> getDecoratedObjects()

addCapability

public void addCapability(@NotNull
                          Capability capability,
                          @NotNull
                          CapabilityType capabilityType,
                          @Nullable
                          ReadOnlyCapabilitySet parentCapabilitySet)

addRequirement

public void addRequirement(@NotNull
                           Requirement requirement,
                           @NotNull
                           CapabilityType capabilityType)

addRequirement

public void addRequirement(@NotNull
                           Requirement requirement,
                           @NotNull
                           CapabilityType capabilityType,
                           @NotNull
                           Build build)

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(CapabilityGroup o)
Specified by:
compareTo in interface java.lang.Comparable<CapabilityGroup>


Copyright © 2010 Atlassian. All Rights Reserved.