Package | Description |
---|---|
javax.validation | |
org.hibernate.validator.internal.engine |
Implementations for the core interfaces of JSR-303.
|
org.hibernate.validator.method |
Deprecated. Will by replaced by equivalent
functionality defined by the Bean Validation 1.1 API as of Hibernate
Validator 5.
|
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
|
Modifier and Type | Class and Description |
---|---|
class |
ValidationContext<T,C extends ConstraintViolation<T>>
Context object keeping track of all important data for a top level
Validator.validate(Object, Class[]) },
Validator.validateValue(Class, String, Object, Class[]) }
or Validator.validateProperty(Object, String, Class[]) call. |
Modifier and Type | Class and Description |
---|---|
class |
ConstraintViolationImpl<T> |
class |
MethodConstraintViolationImpl<T> |
Modifier and Type | Method and Description |
---|---|
<T,U,V,E extends ConstraintViolation<T>> |
ConstraintTree.validateConstraints(ValidationContext<T,E> executionContext,
ValueContext<U,V> valueContext) |
Modifier and Type | Method and Description |
---|---|
<U,V> ConstraintViolation<T> |
StandardValidationContext.createConstraintViolation(ValueContext<U,V> localContext,
MessageAndPath messageAndPath,
ConstraintDescriptor<?> descriptor) |
Modifier and Type | Method and Description |
---|---|
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidate(T object,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidateProperty(T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidateValue(Class<T> rootBeanClass,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validate(T object,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateProperty(T object,
String propertyName,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups) |
Modifier and Type | Interface and Description |
---|---|
interface |
MethodConstraintViolation<T>
Deprecated.
Will by replaced by equivalent functionality defined by the Bean
Validation 1.1 API as of Hibernate Validator 5.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.