Enum FailureStrategy

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASK_USER
      Ask the user whether to continue or to quit.
      ASK_USER_RETRY
      Ask the user whether to continue, to retry or to quit.
      CONTINUE
      Continue after a failure.
      QUIT
      Quit after a failure.
      RETURN_TO_SCREEN
      No further actions will be executed and the previous screen will be displayed again.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Convert to an int value.
      static FailureStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FailureStrategy[] 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

      • CONTINUE

        public static final FailureStrategy CONTINUE
        Continue after a failure.
      • ASK_USER

        public static final FailureStrategy ASK_USER
        Ask the user whether to continue or to quit.
      • ASK_USER_RETRY

        public static final FailureStrategy ASK_USER_RETRY
        Ask the user whether to continue, to retry or to quit.
      • RETURN_TO_SCREEN

        public static final FailureStrategy RETURN_TO_SCREEN
        No further actions will be executed and the previous screen will be displayed again. If the action is contained the startup node, the first screen will be displayed.
    • Method Detail

      • values

        public static FailureStrategy[] 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 (FailureStrategy c : FailureStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FailureStrategy 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
      • getId

        public int getId()
        Convert to an int value.
        Returns:
        the int value