Enum Class ResultMode

java.lang.Object
java.lang.Enum<ResultMode>
org.springframework.shell.component.flow.ResultMode
All Implemented Interfaces:
Serializable, Comparable<ResultMode>, Constable

public enum ResultMode extends Enum<ResultMode>
Enumeration of a modes instructing how resultValue is handled.
  • Enum Constant Details

    • ACCEPT

      public static final ResultMode ACCEPT
      Blindly accept a given resultValue resulting component run to be skipped and value set as a result automatically.
    • VERIFY

      public static final ResultMode VERIFY
      Verify a given resultValue with a component run. It is up to a component to define how it's done but usually result value is set as a default value which allows user to just continue.
  • Method Details

    • values

      public static ResultMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

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