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
ConstructorDescriptionCapabilityImpl
(@NotNull String key, @Nullable String value) CapabilityImpl
(@NotNull String key, @Nullable String value, @Nullable CapabilitySource capabilitySource) -
Method Summary
Modifier and TypeMethodDescriptionint
static Capability
copy
(Capability capability) void
copySourceFrom
(Capability other) void
copyValueFrom
(Capability other) boolean
@Nullable CapabilitySource
Get source in which the ability is defined@NotNull String
getKey()
Get the key representing the capability@Nullable String
getValue()
A value of the capability property.@NotNull String
A null-safe getter of value of the capability property.int
hashCode()
void
setCapabilitySet
(CapabilitySet capabilitySet) void
setCapabilitySource
(@Nullable CapabilitySource capabilitySourceMask) void
setCapabilitySourceMask
(Integer capabilitySourceMask) void
void
toString()
static String
toStringWithCustomValue
(@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 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:Capability
Get the key representing the capability- Specified by:
getKey
in interfaceCapability
-
setKey
- Specified by:
setKey
in interfaceCapability
-
getValue
Description copied from interface:Capability
A value of the capability property. For matching toRequirement
- Specified by:
getValue
in interfaceCapability
-
getValueWithDefault
Description copied from interface:Capability
A null-safe getter of value of the capability property. For matching toRequirement
- Specified by:
getValueWithDefault
in interfaceCapability
- Returns:
- value or empty string if value is null
-
setValue
- Specified by:
setValue
in interfaceCapability
-
getCapabilitySourceMask
-
setCapabilitySourceMask
-
getCapabilitySource
Description copied from interface:Capability
Get source in which the ability is defined- Specified by:
getCapabilitySource
in interfaceCapability
-
setCapabilitySource
- Specified by:
setCapabilitySource
in interfaceCapability
-
getCapabilitySet
- Specified by:
getCapabilitySet
in interfaceCapability
-
setCapabilitySet
- Specified by:
setCapabilitySet
in interfaceCapability
-
copyValueFrom
- Specified by:
copyValueFrom
in interfaceCapability
-
copySourceFrom
- Specified by:
copySourceFrom
in interfaceCapability
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equals
in 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
-