public enum ExecutionResultState extends Enum<ExecutionResultState>
Enum Constant and Description |
---|
KO
Not executed.
|
NA
Not applicable.
|
OK
Everything was performed.
|
PARTIAL
Partially executed.
|
Modifier and Type | Field and Description |
---|---|
IExecutionResult |
COND_KO
Constant results, returning [condition: KO / action: Current Enum Value].
|
IExecutionResult |
COND_NA
Constant results, returning [condition: NA / action: Current Enum Value].
|
IExecutionResult |
COND_OK
Constant results, returning [condition: OK / action: Current Enum Value].
|
IExecutionResult |
COND_PARTIAL
Constant results, returning [condition: PARTIAL / action: Current Enum Value].
|
Modifier and Type | Method and Description |
---|---|
abstract ExecutionResultState |
combineActionState(ExecutionResultState s)
Combine current state with sub-state, for action results :
XX + NA --> XX
NA + XX --> XX
PARTIAL + XX --> PARTIAL
OK + OK --> OK
OK + PARTIAL --> PARTIAL
OK + KO --> PARTIAL
KO + OK --> PARTIAL
KO + PARTIAL --> PARTIAL
KO + KO --> KO
|
ExecutionResultState |
combineConditionState(ExecutionResultState s)
Combine current state with sub-state, for condition results :
NA + XX --> XX
OK + XX --> OK
KO + OK --> OK
KO + !
|
IExecutionResult |
getForCondition(ExecutionResultState conditionResult)
Considering current enum value is Action result,
returns a result for [condition: conditionResult / action: Current Enum Value]
|
static ExecutionResultState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutionResultState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutionResultState NA
public static final ExecutionResultState KO
public static final ExecutionResultState PARTIAL
public static final ExecutionResultState OK
public final IExecutionResult COND_NA
public final IExecutionResult COND_KO
public final IExecutionResult COND_OK
public final IExecutionResult COND_PARTIAL
public static ExecutionResultState[] values()
for (ExecutionResultState c : ExecutionResultState.values()) System.out.println(c);
public static ExecutionResultState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic IExecutionResult getForCondition(ExecutionResultState conditionResult)
public ExecutionResultState combineConditionState(ExecutionResultState s)
s
- ExecutionResultState to combine withpublic abstract ExecutionResultState combineActionState(ExecutionResultState s)
s
- ExecutionResultState to combine with