com.atlassian.bamboo.builder
Enum BuildState

java.lang.Object
  extended by java.lang.Enum<BuildState>
      extended by com.atlassian.bamboo.builder.BuildState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BuildState>

public enum BuildState
extends java.lang.Enum<BuildState>

Simple enumeration of build states.


Enum Constant Summary
FAILED
          The Build failed
SUCCESS
          The Build was successful
UNKNOWN
          The build state is unknown
 
Method Summary
static BuildState getInstance(java.lang.String state)
          Returns the appropriate enum value from the given state string
 java.lang.String toString()
           
static BuildState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BuildState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final BuildState UNKNOWN
The build state is unknown


SUCCESS

public static final BuildState SUCCESS
The Build was successful


FAILED

public static final BuildState FAILED
The Build failed

Method Detail

values

public static BuildState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BuildState c : BuildState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BuildState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getInstance

public static BuildState getInstance(java.lang.String state)
Returns the appropriate enum value from the given state string

Parameters:
state - Case insensitive string representation of BuildState
Returns:
BuildState object corresponding to input state

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<BuildState>


Copyright © 2011 Atlassian. All Rights Reserved.