com.atlassian.bamboo.v2.build.trigger
Enum DependencyBlockingStrategy

java.lang.Object
  extended by java.lang.Enum<DependencyBlockingStrategy>
      extended by com.atlassian.bamboo.v2.build.trigger.DependencyBlockingStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DependencyBlockingStrategy>

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

Strategy for the DependencyBlockingManager


Enum Constant Summary
BuildParentIfChangesDetected
           
DontBuildIfParentInQueue
           
None
           
 
Method Summary
static DependencyBlockingStrategy getByValue(java.lang.String value)
          Get the strategy by value
 java.lang.String getI18nKey()
          Get the I18n key
static DependencyBlockingStrategy getStrategy(Build build)
          Get strategy for build
 java.lang.String getValue()
          Get storage value
static java.util.Map<java.lang.String,java.lang.String> getValueMap(I18nBean i18nBean)
          Get a map of values and the i18nialized names
static void setStrategy(DependencyBlockingStrategy strategy, Build build)
          Set strategy for build
static DependencyBlockingStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DependencyBlockingStrategy[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final DependencyBlockingStrategy None

DontBuildIfParentInQueue

public static final DependencyBlockingStrategy DontBuildIfParentInQueue

BuildParentIfChangesDetected

public static final DependencyBlockingStrategy BuildParentIfChangesDetected
Method Detail

values

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

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

valueOf

public static DependencyBlockingStrategy 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

getStrategy

@Nullable
public static DependencyBlockingStrategy getStrategy(@NotNull
                                                              Build build)
Get strategy for build

Parameters:
build -
Returns:
strategy

setStrategy

public static void setStrategy(DependencyBlockingStrategy strategy,
                               @NotNull
                               Build build)
Set strategy for build

Parameters:
strategy -
build -

getByValue

public static DependencyBlockingStrategy getByValue(java.lang.String value)
Get the strategy by value

Parameters:
value -
Returns:
strategy

getValueMap

public static java.util.Map<java.lang.String,java.lang.String> getValueMap(@NotNull
                                                                           I18nBean i18nBean)
Get a map of values and the i18nialized names

Parameters:
i18nBean -
Returns:
map

getI18nKey

public java.lang.String getI18nKey()
Get the I18n key

Returns:
i18nKey

getValue

public java.lang.String getValue()
Get storage value

Returns:
value


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.