public interface BeanValidator
| Modifier and Type | Method and Description |
|---|---|
List<Message> |
validate(Object object,
Class<?>... groups)
Validate the bean and return a list of messages if has constraint violations.
|
List<Message> |
validateProperties(Object object,
String... properties)
Validate the specified bean's properties and return a list of messages if has constraint violations.
|
List<Message> |
validateProperty(Object object,
String property,
Class<?>... groups)
Validate the specified bean's property and return a list of messages if has constraint violations.
|
List<Message> validate(Object object, Class<?>... groups)
object - The object to be validated.groups - The groups that must be validated.List<Message> validateProperties(Object object, String... properties)
object - The object to be validated.properties - The properties that must be validated.List<Message> validateProperty(Object object, String property, Class<?>... groups)
object - The object to be validated.property - The property that must be validated.groups - The groups that must be validated.Copyright © 2014 Caelum. All Rights Reserved.