Package | Description |
---|---|
javax.validation |
Top level package of the Bean Validation API.
|
javax.validation.executable |
Package related to the control and execution of executable validation.
|
org.apache.cxf.validation | |
org.hibernate.validator.engine | |
org.hibernate.validator.internal.engine |
Implementations for the core interfaces of JSR-303.
|
org.jboss.resteasy.api.validation | |
org.jboss.resteasy.plugins.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 . |
Constructor and Description |
---|
ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
ConstraintViolationException(String message,
Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
Modifier and Type | Method and Description |
---|---|
<T> Set<ConstraintViolation<T>> |
ExecutableValidator.validateConstructorParameters(Constructor<? extends T> constructor,
Object[] parameterValues,
Class<?>... groups)
Validates all constraints placed on the parameters of the given constructor.
|
<T> Set<ConstraintViolation<T>> |
ExecutableValidator.validateConstructorReturnValue(Constructor<? extends T> constructor,
T createdObject,
Class<?>... groups)
Validates all return value constraints of the given constructor.
|
<T> Set<ConstraintViolation<T>> |
ExecutableValidator.validateParameters(T object,
Method method,
Object[] parameterValues,
Class<?>... groups)
Validates all constraints placed on the parameters of the given method.
|
<T> Set<ConstraintViolation<T>> |
ExecutableValidator.validateReturnValue(T object,
Method method,
Object returnValue,
Class<?>... groups)
Validates all return value constraints of the given method.
|
Constructor and Description |
---|
ResponseConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations) |
Modifier and Type | Interface and Description |
---|---|
interface |
HibernateConstraintViolation<T>
A custom
ConstraintViolation which allows to get additional information for a constraint violation. |
Modifier and Type | Class and Description |
---|---|
class |
ConstraintViolationImpl<T> |
Modifier and Type | Method and Description |
---|---|
ConstraintViolation<T> |
ValidationContext.createConstraintViolation(ValueContext<?,?> localContext,
ConstraintViolationCreationContext constraintViolationCreationContext,
ConstraintDescriptor<?> descriptor) |
static <T> ConstraintViolation<T> |
ConstraintViolationImpl.forBeanValidation(String messageTemplate,
Map<String,Object> expressionVariables,
String interpolatedMessage,
Class<T> rootBeanClass,
T rootBean,
Object leafBeanInstance,
Object value,
Path propertyPath,
ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType,
Object dynamicPayload) |
static <T> ConstraintViolation<T> |
ConstraintViolationImpl.forParameterValidation(String messageTemplate,
Map<String,Object> expressionVariables,
String interpolatedMessage,
Class<T> rootBeanClass,
T rootBean,
Object leafBeanInstance,
Object value,
Path propertyPath,
ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType,
Object[] executableParameters,
Object dynamicPayload) |
static <T> ConstraintViolation<T> |
ConstraintViolationImpl.forReturnValueValidation(String messageTemplate,
Map<String,Object> expressionVariables,
String interpolatedMessage,
Class<T> rootBeanClass,
T rootBean,
Object leafBeanInstance,
Object value,
Path propertyPath,
ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType,
Object executableReturnValue,
Object dynamicPayload) |
Modifier and Type | Method and Description |
---|---|
Set<ConstraintViolation<T>> |
ValidationContext.createConstraintViolations(ValueContext<?,?> localContext,
ConstraintValidatorContextImpl constraintValidatorContext) |
Set<ConstraintViolation<T>> |
ValidationContext.getFailingConstraints() |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validate(T object,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateConstructorParameters(Constructor<? extends T> constructor,
Object[] parameterValues,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateConstructorReturnValue(Constructor<? extends T> constructor,
T createdObject,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateParameters(T object,
Method method,
Object[] parameterValues,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateProperty(T object,
String propertyName,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateReturnValue(T object,
Method method,
Object returnValue,
Class<?>... groups) |
<T> Set<ConstraintViolation<T>> |
ValidatorImpl.validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups) |
Modifier and Type | Method and Description |
---|---|
void |
ValidationContext.addConstraintFailures(Set<ConstraintViolation<T>> failingConstraintViolations) |
Modifier and Type | Method and Description |
---|---|
protected ResteasyConstraintViolation |
ResteasyViolationException.convertViolation(ConstraintViolation<?> violation) |
Constructor and Description |
---|
ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
New constructor
|
ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations,
List<MediaType> accept)
New constructor
|
Modifier and Type | Method and Description |
---|---|
Set<ConstraintViolation<Object>> |
SimpleViolationsContainer.getViolations() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleViolationsContainer.addViolations(Set<ConstraintViolation<Object>> cvs) |
Constructor and Description |
---|
SimpleViolationsContainer(Set<ConstraintViolation<Object>> cvs) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.