Enum RuleExecutionResult.Status
- java.lang.Object
-
- java.lang.Enum<RuleExecutionResult.Status>
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.RuleExecutionResult.Status
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RuleExecutionResult.Status>
- Enclosing class:
- RuleExecutionResult
public static enum RuleExecutionResult.Status extends java.lang.Enum<RuleExecutionResult.Status>
Denotes the execution status.- Author:
- Holger Eichelberger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILFailure during body or postcondition.NOT_APPLICABLEPreconditions are not met.SUCCESSSuccessful execution of preconditions, body and postcondition.
-
Constructor Summary
Constructors Modifier Constructor Description privateStatus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuleExecutionResult.StatustoStatus(java.lang.Object object)Turns a rule body execution result into a status.static RuleExecutionResult.StatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RuleExecutionResult.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final RuleExecutionResult.Status SUCCESS
Successful execution of preconditions, body and postcondition.
-
FAIL
public static final RuleExecutionResult.Status FAIL
Failure during body or postcondition.
-
NOT_APPLICABLE
public static final RuleExecutionResult.Status NOT_APPLICABLE
Preconditions are not met. Rule is not applicable.
-
-
Method Detail
-
values
public static RuleExecutionResult.Status[] 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 (RuleExecutionResult.Status c : RuleExecutionResult.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuleExecutionResult.Status 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
-
toStatus
public static RuleExecutionResult.Status toStatus(java.lang.Object object)
Turns a rule body execution result into a status. Either it is anyway a status or it was successful if object is not null.- Parameters:
object- the object to be converted- Returns:
- the status
-
-