public static interface ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeContextBuilder
Iterable or Map.
If the iterable is an indexed collection or a map, the index or the key should be set.
The node is a leaf node (i.e. no subnode can be added).
| Modifier and Type | Method and Description |
|---|---|
ConstraintValidatorContext |
addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext |
atIndex(Integer index)
Defines the index the object is into the
List or array |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext |
atKey(Object key)
Defines the key the object is into the
Map. |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext atKey(Object key)
Map.key - map keyConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext atIndex(Integer index)
List or arrayindex - indexConstraintValidatorContext addConstraintViolation()
ConstraintViolation to be generated if the
constraint validator mark the value as invalid.
Methods of the ConstraintViolationBuilder instance this object
comes from and the constraint violation builder nested
objects throw IllegalStateException after this call.
ConstraintValidatorContext instance the
ConstraintViolationBuilder comes fromCopyright © 2019 Eclipse Foundation.
Use is subject to license terms.