Uses of Interface
jakarta.validation.ConstraintViolation
-
Packages that use ConstraintViolation Package Description jakarta.validation Top level package of the Jakarta Bean Validation API.jakarta.validation.executable Package related to the control and execution of executable validation. -
-
Uses of ConstraintViolation in jakarta.validation
Methods in jakarta.validation that return types with arguments of type ConstraintViolation Modifier and Type Method Description Set<ConstraintViolation<?>>
ConstraintViolationException. getConstraintViolations()
Returns the set of constraint violations reported during a validation.<T> Set<ConstraintViolation<T>>
Validator. validate(T object, Class<?>... groups)
Validates all constraints onobject
.<T> Set<ConstraintViolation<T>>
Validator. validateProperty(T object, String propertyName, Class<?>... groups)
Validates all constraints placed on the property ofobject
namedpropertyName
.<T> Set<ConstraintViolation<T>>
Validator. validateValue(Class<T> beanType, String propertyName, Object value, Class<?>... groups)
Validates all constraints placed on the property namedpropertyName
of the classbeanType
would the property value bevalue
.Constructor parameters in jakarta.validation with type arguments of type ConstraintViolation Constructor Description ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report. -
Uses of ConstraintViolation in jakarta.validation.executable
Methods in jakarta.validation.executable that return types with arguments of type ConstraintViolation Modifier and Type Method 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.
-