Class CapabilityImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.v2.build.agent.capability.CapabilityImpl
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,Capability,Serializable,Cloneable
@Entity public class CapabilityImpl extends BambooEntityObject implements Capability
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.Capability
SYSTEM_PREFIX
-
-
Constructor Summary
Constructors Constructor Description CapabilityImpl()CapabilityImpl(@NotNull String key, @Nullable String value)CapabilityImpl(@NotNull String key, @Nullable String value, @Nullable CapabilitySource capabilitySource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object obj)static Capabilitycopy(Capability capability)voidcopySourceFrom(Capability other)voidcopyValueFrom(Capability other)booleanequals(Object o)CapabilitySetgetCapabilitySet()@Nullable CapabilitySourcegetCapabilitySource()Get source in which the ability is definedIntegergetCapabilitySourceMask()@NotNull StringgetKey()Get the key representing the capability@Nullable StringgetValue()A value of the capability property.@NotNull StringgetValueWithDefault()A null-safe getter of value of the capability property.inthashCode()voidsetCapabilitySet(CapabilitySet capabilitySet)voidsetCapabilitySource(@Nullable CapabilitySource capabilitySourceMask)voidsetCapabilitySourceMask(Integer capabilitySourceMask)voidsetKey(@NotNull String key)voidsetValue(@Nullable String value)StringtoString()static StringtoStringWithCustomValue(@NotNull String key, @Nullable String value, @Nullable CapabilitySource capabilitySource)-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
CapabilityImpl
public CapabilityImpl()
-
CapabilityImpl
public CapabilityImpl(@NotNull @NotNull String key, @Nullable @Nullable String value)
-
CapabilityImpl
public CapabilityImpl(@NotNull @NotNull String key, @Nullable @Nullable String value, @Nullable @Nullable CapabilitySource capabilitySource)
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:CapabilityGet the key representing the capability- Specified by:
getKeyin interfaceCapability
-
setKey
public void setKey(@NotNull @NotNull String key)- Specified by:
setKeyin interfaceCapability
-
getValue
@Nullable public @Nullable String getValue()
Description copied from interface:CapabilityA value of the capability property. For matching toRequirement- Specified by:
getValuein interfaceCapability
-
getValueWithDefault
@NotNull public @NotNull String getValueWithDefault()
Description copied from interface:CapabilityA null-safe getter of value of the capability property. For matching toRequirement- Specified by:
getValueWithDefaultin interfaceCapability- Returns:
- value or empty string if value is null
-
setValue
public void setValue(@Nullable @Nullable String value)- Specified by:
setValuein interfaceCapability
-
getCapabilitySourceMask
public Integer getCapabilitySourceMask()
-
setCapabilitySourceMask
public void setCapabilitySourceMask(Integer capabilitySourceMask)
-
getCapabilitySource
@Nullable public @Nullable CapabilitySource getCapabilitySource()
Description copied from interface:CapabilityGet source in which the ability is defined- Specified by:
getCapabilitySourcein interfaceCapability
-
setCapabilitySource
public void setCapabilitySource(@Nullable @Nullable CapabilitySource capabilitySourceMask)- Specified by:
setCapabilitySourcein interfaceCapability
-
getCapabilitySet
public CapabilitySet getCapabilitySet()
- Specified by:
getCapabilitySetin interfaceCapability
-
setCapabilitySet
public void setCapabilitySet(CapabilitySet capabilitySet)
- Specified by:
setCapabilitySetin interfaceCapability
-
copyValueFrom
public void copyValueFrom(Capability other)
- Specified by:
copyValueFromin interfaceCapability
-
copySourceFrom
public void copySourceFrom(Capability other)
- Specified by:
copySourceFromin interfaceCapability
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(Object obj)
-
toStringWithCustomValue
public static String toStringWithCustomValue(@NotNull @NotNull String key, @Nullable @Nullable String value, @Nullable @Nullable CapabilitySource capabilitySource)
-
copy
public static Capability copy(Capability capability)
-
-