Interface ValidationResult
public interface ValidationResult
Captures the result of a validation. Normally created by validators that
implement the
Validator
interface.-
Method Summary
Modifier and TypeMethodDescriptionThe validation error that have been found.default boolean
Returns true if there is a validation error, false otherwise.default boolean
isValid()
Returns true if there is no validation error, false otherwise.
-
Method Details
-
isValid
default boolean isValid()Returns true if there is no validation error, false otherwise.- Returns:
- true if there is no validation error.
-
isErroneous
default boolean isErroneous()Returns true if there is a validation error, false otherwise.- Returns:
- true if there is a validation error.
-
getErrorDescription
The validation error that have been found.- Returns:
- the error description or null in case the validation was valid.
-