Example usage for Java org.springframework.validation ValidationUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
void | invokeValidator(Validator validator, Object target, Errors errors) Invoke the given Validator for the supplied object and Errors instance. |
void | invokeValidator(Validator validator, Object target, Errors errors, @Nullable Object... validationHints) Invoke the given Validator / SmartValidator for the supplied object and Errors instance. |
void | rejectIfEmpty(Errors errors, String field, String errorCode) Reject the given field with the given error code if the value is empty. |
void | rejectIfEmpty(Errors errors, String field, String errorCode, String defaultMessage) Reject the given field with the given error code and default message if the value is empty. |
void | rejectIfEmpty(Errors errors, String field, String errorCode, Object[] errorArgs) Reject the given field with the given error code and error arguments if the value is empty. |
void | rejectIfEmpty(Errors errors, String field, String errorCode, @Nullable Object[] errorArgs, @Nullable String defaultMessage) Reject the given field with the given error code, error arguments and default message if the value is empty. |
void | rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode) Reject the given field with the given error code if the value is empty or just contains whitespace. |
void | rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, String defaultMessage) Reject the given field with the given error code and default message if the value is empty or just contains whitespace. |
void | rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, @Nullable Object[] errorArgs) Reject the given field with the given error code and error arguments if the value is empty or just contains whitespace. |
void | rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, @Nullable Object[] errorArgs, @Nullable String defaultMessage) Reject the given field with the given error code, error arguments and default message if the value is empty or just contains whitespace. |