Package com.install4j.api.beaninfo
Enum FailureStrategy
- java.lang.Object
-
- java.lang.Enum<FailureStrategy>
-
- com.install4j.api.beaninfo.FailureStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FailureStrategy>
public enum FailureStrategy extends java.lang.Enum<FailureStrategy>
Enumeration class for all possible failure strategies of actions.
-
-
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.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final FailureStrategy CONTINUE
Continue after a failure.
-
QUIT
public static final FailureStrategy QUIT
Quit 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 namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()
Convert to an int value.- Returns:
- the int value
-
-