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
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.Capability
SYSTEM_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCapabilityImpl(@NotNull String key, @Nullable String value) CapabilityImpl(@NotNull String key, @Nullable String value, @Nullable CapabilitySource capabilitySource) -
Method Summary
Modifier and TypeMethodDescriptionintstatic Capabilitycopy(Capability capability) voidcopySourceFrom(Capability other) voidcopyValueFrom(Capability other) boolean@Nullable CapabilitySourceGet source in which the ability is defined@NotNull StringgetKey()Get the key representing the capability@Nullable StringgetValue()A value of the capability property.@NotNull StringA null-safe getter of value of the capability property.inthashCode()voidsetCapabilitySet(CapabilitySet capabilitySet) voidsetCapabilitySource(@Nullable CapabilitySource capabilitySourceMask) voidsetCapabilitySourceMask(Integer capabilitySourceMask) voidvoidtoString()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, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
CapabilityImpl
public CapabilityImpl() -
CapabilityImpl
-
CapabilityImpl
public CapabilityImpl(@NotNull @NotNull String key, @Nullable @Nullable String value, @Nullable @Nullable CapabilitySource capabilitySource)
-
-
Method Details
-
getKey
Description copied from interface:CapabilityGet the key representing the capability- Specified by:
getKeyin interfaceCapability
-
setKey
- Specified by:
setKeyin interfaceCapability
-
getValue
Description copied from interface:CapabilityA value of the capability property. For matching toRequirement- Specified by:
getValuein interfaceCapability
-
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
- Specified by:
setValuein interfaceCapability
-
getCapabilitySourceMask
-
setCapabilitySourceMask
-
getCapabilitySource
Description copied from interface:CapabilityGet source in which the ability is defined- Specified by:
getCapabilitySourcein interfaceCapability
-
setCapabilitySource
- Specified by:
setCapabilitySourcein interfaceCapability
-
getCapabilitySet
- Specified by:
getCapabilitySetin interfaceCapability
-
setCapabilitySet
- Specified by:
setCapabilitySetin interfaceCapability
-
copyValueFrom
- Specified by:
copyValueFromin interfaceCapability
-
copySourceFrom
- Specified by:
copySourceFromin interfaceCapability
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
-
toString
-
toStringWithCustomValue
public static String toStringWithCustomValue(@NotNull @NotNull String key, @Nullable @Nullable String value, @Nullable @Nullable CapabilitySource capabilitySource) -
copy
-