validate abstract method

void validate(
  1. Object target,
  2. Errors errors
)

Checks target and records every problem in errors, with Errors.rejectValue for a field or Errors.reject for the whole object. Records nothing when target is valid; does not throw for invalid data.

Implementation

void validate(Object target, Errors errors);