Interface ValidationResult
-
public interface ValidationResultCaptures the result of a validation. Normally created by validators that implement theValidatorinterface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetErrorDescription()The validation error that have been found.default booleanisErroneous()Returns true if there is a validation error, false otherwise.default booleanisValid()Returns true if there is no validation error, false otherwise.
-
-
-
Method Detail
-
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.
-
-