Package | Description |
---|---|
javax.validation |
Modifier and Type | Method and Description |
---|---|
Set<ConstraintViolation<?>> |
ConstraintViolationException.getConstraintViolations()
Set of constraint violations reported during a validation
|
<T> Set<ConstraintViolation<T>> |
Validator.validate(T object,
Class<?>... groups)
Validates all constraints on
object . |
<T> Set<ConstraintViolation<T>> |
Validator.validateProperty(T object,
String propertyName,
Class<?>... groups)
Validates all constraints placed on the property of
object
named propertyName . |
<T> Set<ConstraintViolation<T>> |
Validator.validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups)
Validates all constraints placed on the property named
propertyName
of the class beanType would the property value be value
ConstraintViolation objects return null for
getRootBean() and getLeafBean() |
Constructor and Description |
---|
ConstraintViolationException(Set<ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report
|
ConstraintViolationException(String message,
Set<ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report
|
Copyright © 2007-2013. All Rights Reserved.