public static interface ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext
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.NodeContextBuilder |
inIterable()
Mark the node as being in an
Iterable or a Map |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder inIterable()
Iterable
or a Map
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext addNode(String name)
ConstraintViolation
will be associated to.
name
describes a single property. In particular,
dot (.) are not allowed.name
- property name
ConstraintValidatorContext 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 © 2018 JBoss by Red Hat. All rights reserved.