public interface BeanValidator
Modifier and Type | Method and Description |
---|---|
<T> void |
validate(T object)
Validates the passed object using
Validator , in
case a constraints check fails a exception is thrown. |
<T> void validate(T object) throws javax.validation.ValidationException
Validator
, in
case a constraints check fails a exception is thrown.object
- Valid object.javax.validation.ValidationException
- in case a constraints validation failed.