Enum Class KeyType

java.lang.Object
java.lang.Enum<KeyType>
com.atlassian.bamboo.KeyType
All Implemented Interfaces:
Serializable, Comparable<KeyType>, Constable

public enum KeyType extends Enum<KeyType>
  • Enum Constant Details

    • CHAIN

      public static final KeyType CHAIN
    • CHAIN_RESULT

      public static final KeyType CHAIN_RESULT
    • DEPLOYMENT

      public static final KeyType DEPLOYMENT
    • DEPLOYMENT_RESULT

      public static final KeyType DEPLOYMENT_RESULT
    • JOB

      public static final KeyType JOB
    • JOB_RESULT

      public static final KeyType JOB_RESULT
    • UNKNOWN

      public static final KeyType UNKNOWN
  • Method Details

    • values

      public static KeyType[] 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

      public static KeyType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKeyTypeFromString

      public static KeyType getKeyTypeFromString(String key)
      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

      public Key toKey(String key)
      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

      public static Key getKeyFromString(String key)
      Get the typed key from its string representation
      Parameters:
      key -
      Returns: