com.atlassian.bamboo.builder
Enum LifeCycleState

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

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


Enum Constant Summary
FINISHED
          The Build finished
IN_PROGRESS
          The build is really building, so once checkout started on agent
NOT_BUILT
          The Build was not built
PENDING
          The build pending, as long as build is queued
QUEUED
          The build queued, as long as agent not started build process
 
Field Summary
static java.util.EnumSet<LifeCycleState> ACTIVE_STATES
           
static java.util.EnumSet<LifeCycleState> FINAL_STATES
           
 
Method Summary
static LifeCycleState getInstance(java.lang.String state)
          Returns the appropriate enum value from the given state string
 java.lang.String getValue()
           
static boolean isActive(LifeCycleState lifeCycleState)
           
static boolean isFinalized(LifeCycleState lifeCycleState)
           
static boolean isFinished(LifeCycleState lifeCycleState)
           
static boolean isInProgress(LifeCycleState lifeCycleState)
           
static boolean isNotBuilt(LifeCycleState lifeCycleState)
           
static boolean isPending(LifeCycleState lifeCycleState)
           
static boolean isQueued(LifeCycleState lifeCycleState)
           
static boolean isWaiting(LifeCycleState lifeCycleState)
           
static java.util.Collection<java.lang.String> lifeCycleStatesToStringCollection(java.util.Collection<LifeCycleState> lifeCycleStates)
           
 java.lang.String toString()
          Is required because of Hibernate
static LifeCycleState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LifeCycleState[] 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

PENDING

public static final LifeCycleState PENDING
The build pending, as long as build is queued


QUEUED

public static final LifeCycleState QUEUED
The build queued, as long as agent not started build process


IN_PROGRESS

public static final LifeCycleState IN_PROGRESS
The build is really building, so once checkout started on agent


FINISHED

public static final LifeCycleState FINISHED
The Build finished


NOT_BUILT

public static final LifeCycleState NOT_BUILT
The Build was not built

Field Detail

ACTIVE_STATES

public static final java.util.EnumSet<LifeCycleState> ACTIVE_STATES

FINAL_STATES

public static final java.util.EnumSet<LifeCycleState> FINAL_STATES
Method Detail

values

public static LifeCycleState[] 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 (LifeCycleState c : LifeCycleState.values())
    System.out.println(c);

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

valueOf

public static LifeCycleState 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 LifeCycleState getInstance(java.lang.String state)
Returns the appropriate enum value from the given state string

Parameters:
state -
Returns:
LifeCycleState object corresponding to input state

getValue

@NotNull
public java.lang.String getValue()

toString

public java.lang.String toString()
Is required because of Hibernate

Overrides:
toString in class java.lang.Enum<LifeCycleState>
Returns:

isPending

public static boolean isPending(@Nullable
                                LifeCycleState lifeCycleState)

isQueued

public static boolean isQueued(@Nullable
                               LifeCycleState lifeCycleState)

isWaiting

public static boolean isWaiting(@Nullable
                                LifeCycleState lifeCycleState)

isActive

public static boolean isActive(@Nullable
                               LifeCycleState lifeCycleState)

isFinalized

public static boolean isFinalized(@Nullable
                                  LifeCycleState lifeCycleState)

isInProgress

public static boolean isInProgress(@Nullable
                                   LifeCycleState lifeCycleState)

isFinished

public static boolean isFinished(@Nullable
                                 LifeCycleState lifeCycleState)

isNotBuilt

public static boolean isNotBuilt(@Nullable
                                 LifeCycleState lifeCycleState)

lifeCycleStatesToStringCollection

public static java.util.Collection<java.lang.String> lifeCycleStatesToStringCollection(@NotNull
                                                                                       java.util.Collection<LifeCycleState> lifeCycleStates)


Copyright © 2012 Atlassian. All Rights Reserved.