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

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.v2.build.agent.capability.CapabilityImpl
All Implemented Interfaces:
BambooObject, Capability, java.lang.Cloneable

public class CapabilityImpl
extends BambooEntityObject
implements Capability


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.Capability
SYSTEM_PREFIX
 
Constructor Summary
CapabilityImpl()
           
CapabilityImpl(java.lang.String key, java.lang.String value)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 CapabilitySet getCapabilitySet()
           
 java.lang.String getKey()
          Get the key representing the capability
 java.lang.String getValue()
          A value of the capability property.
 java.lang.String getValueWithDefault()
          A null-safe getter of value of the capability property.
 int hashCode()
           
 void setCapabilitySet(CapabilitySet capabilitySet)
           
 void setKey(java.lang.String key)
           
 void setValue(java.lang.String value)
           
 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
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

CapabilityImpl

public CapabilityImpl()

CapabilityImpl

public CapabilityImpl(@NotNull
                      java.lang.String key,
                      java.lang.String value)
Method Detail

getKey

@NotNull
public java.lang.String getKey()
Description copied from interface: Capability
Get the key representing the capability

Specified by:
getKey in interface Capability
Returns:

setKey

public void setKey(@NotNull
                   java.lang.String key)
Specified by:
setKey in interface Capability

getValue

@Nullable
public java.lang.String getValue()
Description copied from interface: Capability
A value of the capability property. For matching to Requirement

Specified by:
getValue in interface Capability
Returns:

getValueWithDefault

@NotNull
public java.lang.String getValueWithDefault()
Description copied from interface: Capability
A null-safe getter of value of the capability property. For matching to Requirement

Specified by:
getValueWithDefault in interface Capability
Returns:
value or empty string if value is null

setValue

public void setValue(@Nullable
                     java.lang.String value)
Specified by:
setValue in interface Capability

getCapabilitySet

public CapabilitySet getCapabilitySet()
Specified by:
getCapabilitySet in interface Capability

setCapabilitySet

public void setCapabilitySet(CapabilitySet capabilitySet)
Specified by:
setCapabilitySet in interface Capability

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(java.lang.Object obj)

toString

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


Copyright © 2011 Atlassian. All Rights Reserved.