public interface CascadingPropertyValidator
extends javax.validation.Validator
Valid
is not honored by the
Validator.validateProperty(Object, String, Class...)
and
Validator.validateValue(Class, String, Object, Class...)
methods. The
CascadingPropertyValidator
interface thus defines a Validator
that
provides corresponding methods that may honor Valid
.
It should be noted that Validator.validateProperty(Object, String, Class...)
and Validator.validateValue(Class, String, Object, Class...)
are assumed
semantically equivalent to calling the CascadingPropertyValidator
-defined
methods with cascade == false
.Modifier and Type | Method and Description |
---|---|
<T> Set<javax.validation.ConstraintViolation<T>> |
validateProperty(T object,
String propertyName,
boolean cascade,
Class<?>... groups)
Validates all constraints placed on
object 's
propertyName property, with optional validation cascading. |
<T> Set<javax.validation.ConstraintViolation<T>> |
validateValue(Class<T> beanType,
String propertyName,
Object value,
boolean cascade,
Class<?>... groups)
Validates all constraints placed on
object 's
propertyName property, with optional validation cascading,
given a hypothetical property value . |
<T> Set<javax.validation.ConstraintViolation<T>> validateProperty(T object, String propertyName, boolean cascade, Class<?>... groups)
object
's
propertyName
property, with optional validation cascading.T
- object
- propertyName
- cascade
- groups
- Set
of ConstraintViolation
s.<T> Set<javax.validation.ConstraintViolation<T>> validateValue(Class<T> beanType, String propertyName, Object value, boolean cascade, Class<?>... groups)
object
's
propertyName
property, with optional validation cascading,
given a hypothetical property value
.T
- beanType
- propertyName
- value
- cascade
- groups
- Set
of ConstraintViolation
s.Copyright © 2010–2024 The Apache Software Foundation. All rights reserved.