SimpleConditionValidator
public interface ConditionValidator
Modifier and Type | Method | Description |
---|---|---|
boolean |
conditionValid(Condition condition,
int conditionType) |
Checks if given condition is valid.
|
java.lang.String |
getValidationFailureReason() |
Gets description of the reason that caused that latest validated condition was invalid
|
boolean conditionValid(Condition condition, int conditionType)
null
or when given
condition type is different than Condition.CONDITIONAL
and Condition.DECISION
.false
(given condition is invalid) subsequent call to
getValidationFailureReason
method should deliver appropriate description of the reason that caused
that validation did not succeed.condition
- condition to validate, which should not be null
conditionType
- Type of validated condition. Should be Condition.CONDITIONAL
or Condition.DECISION
.true
if given condition is valid, false
otherwisejava.lang.String getValidationFailureReason()
null
when latest validated condition was valid