Enum Class RuleResult.Result
- All Implemented Interfaces:
Serializable,Comparable<RuleResult.Result>,Constable
- Enclosing class:
- RuleResult
Outcome of a rule's execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleResult.ResultReturns the enum constant of this class with the specified name.static RuleResult.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The rule's transform ran, did not throw, and (for TRANSFORM rules) returned a non-null value. -
FAILURE
The rule failed. Any of:- the transform threw,
- a CONDITION rule returned false,
- a TRANSFORM rule returned null, or
- no executor was registered for the rule's type.
onFailureaction runs; ifRuleResult.errorMessage()is set it reflects the underlying cause. -
SKIPPED
The rule was skipped — disabled, environment mismatch, or its mode did not match the current phase. The transform did not run.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-