public abstract class ConstraintValidatorContextUtils extends Object
| Constructor and Description |
|---|
ConstraintValidatorContextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConstraintViolationInIterable(javax.validation.ConstraintValidatorContext context,
String message,
int index)
Builds and adds a constraint violation inside an iterable value to the
given
ConstraintValidatorContext. |
public static void addConstraintViolationInIterable(javax.validation.ConstraintValidatorContext context,
String message,
int index)
ConstraintValidatorContext. If running with Hibernate
Validator 5.x, then it also registers index of the violated value.context - The Constraint validator context.message - The interpolated error message.index - Index of the invalid value inside a list (ignored on HV 4.x).Copyright © 2013–2015. All rights reserved.