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.xwork2.TextProvider textProvider)
           
 
Method Summary
 void addCapability(Capability capability, CapabilityType capabilityType, ReadOnlyCapabilitySet parentCapabilitySet)
           
 RequirementDecorator addRequirement(Requirement requirement, CapabilityType capabilityType)
           
 void addRequirement(Requirement requirement, CapabilityType capabilityType, Buildable 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.xwork2.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 RequirementDecorator addRequirement(@NotNull
                                           Requirement requirement,
                                           @NotNull
                                           CapabilityType capabilityType)

addRequirement

public void addRequirement(@NotNull
                           Requirement requirement,
                           @NotNull
                           CapabilityType capabilityType,
                           @NotNull
                           Buildable 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.