Interface ValidationResult
public interface ValidationResult
This interface defines a Validation Result that might contain errors when the validation has an invalid state.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list with error messages if the result is not valid.Returns a list ofValidationMessage
if the result is not valid.boolean
isValid()
Returns true if there are no errors, false otherwise.
-
Method Details
-
isValid
boolean isValid()Returns true if there are no errors, false otherwise.- Returns:
- true if there are no errors, false otherwise.
- Since:
- 6.8.0
-
getErrorMessages
Returns a list with error messages if the result is not valid.- Returns:
- a list with error messages if the result is not valid.
- Since:
- 6.8.0
-
getFullErrorMessages
List<ValidationMessage> getFullErrorMessages()Returns a list ofValidationMessage
if the result is not valid.- Returns:
- a list of
ValidationMessage
if the result is not valid. - Since:
- 6.9.0
-