Enum Class CapabilitySource
- All Implemented Interfaces:
Serializable
,Comparable<CapabilitySource>
,Constable
Source where given agent capability is defined. Sources are defined in order of priority.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically detectedDefined in bamboo-capabilities.properties fileShared remote capabilityAdded manually by user in UI -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CapabilitySource
Return a capability source for the given name.static @Nullable CapabilitySource
Returns a capability source for the given mask.int
getMask()
Get bits that represents this sourcestatic CapabilitySource
Returns the enum constant of this class with the specified name.static CapabilitySource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
UI
Added manually by user in UI -
PROPERTIES_FILE
Defined in bamboo-capabilities.properties file -
AUTO_DETECTION
Automatically detected -
SHARED
Shared remote capability
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forName
Return a capability source for the given name. Does a case-insensitive check.- Parameters:
name
- name of the capability source- Returns:
- the given capability source or null if not found
-
getByMask
Returns a capability source for the given mask.- Parameters:
mask
- mack of the capability source- Returns:
- the given capability source or null if not found
-
getMask
public int getMask()Get bits that represents this source
-