Enum DependencyBlockingStrategy
- java.lang.Object
-
- java.lang.Enum<DependencyBlockingStrategy>
-
- com.atlassian.bamboo.v2.build.trigger.DependencyBlockingStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<DependencyBlockingStrategy>
public enum DependencyBlockingStrategy extends Enum<DependencyBlockingStrategy>
Strategy for theDependencyBlockingManager
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BuildParentIfChangesDetectedDontBuildIfParentInQueueNone
-
Field Summary
Fields Modifier and Type Field Description static StringDEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull DependencyBlockingStrategyfromSpecsConstant(com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant)Converts the given Bamboo Specs constant to an instance of this enum.static DependencyBlockingStrategygetByValue(String value)Get the strategy by value (essentially a key lookup for type of Strategy)StringgetDescriptionI18nKey()StringgetI18nKey()static @NotNull DependencyBlockingStrategygetStrategy(@NotNull ImmutablePlan plan)Get strategy for buildStringgetValue()Get storage valuestatic voidsetStrategy(DependencyBlockingStrategy strategy, @NotNull Plan plan)Set strategy for buildcom.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategytoSpecsConstant()Returns Bamboo Specs constant used for exporting this enum.static DependencyBlockingStrategyvalueOf(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.
-
-
-
Enum Constant Detail
-
None
public static final DependencyBlockingStrategy None
-
DontBuildIfParentInQueue
public static final DependencyBlockingStrategy DontBuildIfParentInQueue
-
BuildParentIfChangesDetected
public static final DependencyBlockingStrategy BuildParentIfChangesDetected
-
-
Field Detail
-
DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
public static final String DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
- See Also:
- Constant Field Values
-
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getStrategy
@NotNull public static @NotNull DependencyBlockingStrategy getStrategy(@NotNull @NotNull ImmutablePlan plan)
Get strategy for build- Parameters:
plan- to get the strategy for- Returns:
- strategy
-
setStrategy
public static void setStrategy(DependencyBlockingStrategy strategy, @NotNull @NotNull Plan plan)
Set strategy for build- Parameters:
strategy- new strategy for buildplan- to set strategy for
-
getByValue
public static DependencyBlockingStrategy getByValue(String value)
Get the strategy by value (essentially a key lookup for type of Strategy)- Parameters:
value- to look up- Returns:
- strategy
-
toSpecsConstant
@NotNull public com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy toSpecsConstant()
Returns Bamboo Specs constant used for exporting this enum.
-
fromSpecsConstant
@NotNull public static @NotNull DependencyBlockingStrategy fromSpecsConstant(@NotNull com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant)
Converts the given Bamboo Specs constant to an instance of this enum.
-
getI18nKey
public String getI18nKey()
- Returns:
- the I18n key
-
getDescriptionI18nKey
public String getDescriptionI18nKey()
- Returns:
- the description I18n key
-
getValue
public String getValue()
Get storage value- Returns:
- value
-
-