public static interface ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
Iterator or Map.
If the iterator is an indexed collection or a map,
the index or the key should be set.| Modifier and Type | Method and Description |
|---|---|
ConstraintValidatorContext |
addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext |
addNode(String name)
Add a node to the path the
ConstraintViolation will be associated to. |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext |
atIndex(Integer index)
Define the index the object is into the
List or array |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext |
atKey(Object key)
Define the key the object is into the
Map |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext atKey(Object key)
Mapkey - map keyConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext atIndex(Integer index)
List or arrayindex - indexConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext addNode(String name)
ConstraintViolation will be associated to.
name describes a single property. In particular,
dot (.) is not allowed.name - property nameConstraintValidatorContext 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 return IllegalStateException after this call.ConstraintValidatorContext instance the
ConstraintViolationBuilder comes fromCopyright © 2012 JBoss by Red Hat. All Rights Reserved.