Enum DependencyBlockingStrategy

    • 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 name
        NullPointerException - 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 build
        plan - 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