Package com.atlassian.bamboo
Enum Class KeyType
- All Implemented Interfaces:
Serializable
,Comparable<KeyType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Key
getKeyFromString
(String key) Get the typed key from its string representationstatic KeyType
Look at the provided key and work out what KeyType it isAttempt to create the correct key for this KeyType with the provided keystatic KeyType
Returns the enum constant of this class with the specified name.static KeyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAIN
-
CHAIN_RESULT
-
DEPLOYMENT
-
DEPLOYMENT_RESULT
-
JOB
-
JOB_RESULT
-
UNKNOWN
-
-
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
-
getKeyTypeFromString
Look at the provided key and work out what KeyType it is- Parameters:
key
- The string representation of a key- Returns:
- The KeyType that matches
-
toKey
Attempt to create the correct key for this KeyType with the provided key- Parameters:
key
- The key as a string, e.g. "FOO-BAR"- Returns:
- A typed key for this KeyType
-
getKeyFromString
Get the typed key from its string representation- Parameters:
key
-- Returns:
-