public interface CascadingPropertyValidator extends 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<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<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. |
forExecutables, getConstraintsForClass, unwrap, validate, validateProperty, validateValue<T> Set<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 ConstraintViolations.<T> Set<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 ConstraintViolations.Copyright © 2010–2024 The Apache Software Foundation. All rights reserved.