Package jadex.bdiv3.annotation
Enum ExcludeMode
- java.lang.Object
-
- java.lang.Enum<ExcludeMode>
-
- jadex.bdiv3.annotation.ExcludeMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExcludeMode>
public enum ExcludeMode extends java.lang.Enum<ExcludeMode>
The exclude mode determines when and if a plan is removed from the applicable plans list (APL).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Never
The plan is never removed.WhenFailed
The plan is removed after it has been executed once, but only when it exited with an exception.WhenSucceeded
The plan is removed after it has been executed once, but only when it exited without an exception.WhenTried
The plan is removed after it has been executed once, regardless of success or failure or abortion.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
str
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExcludeMode
getExcludeMode(java.lang.String name)
Convert from string to enum.static ExcludeMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ExcludeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Never
public static final ExcludeMode Never
The plan is never removed.
-
WhenTried
public static final ExcludeMode WhenTried
The plan is removed after it has been executed once, regardless of success or failure or abortion.
-
WhenFailed
public static final ExcludeMode WhenFailed
The plan is removed after it has been executed once, but only when it exited with an exception.
-
WhenSucceeded
public static final ExcludeMode WhenSucceeded
The plan is removed after it has been executed once, but only when it exited without an exception.
-
-
Method Detail
-
values
public static ExcludeMode[] 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 (ExcludeMode c : ExcludeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExcludeMode 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
-
getExcludeMode
public static ExcludeMode getExcludeMode(java.lang.String name)
Convert from string to enum.
-
-