public static interface ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext
| Modifier and Type | Method and Description |
|---|---|
ConstraintValidatorContext |
addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext |
addNode(String name)
Add a node to the path the
ConstraintViolation will be associated to. |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext addNode(String name)
ConstraintViolation will be associated to.
name describes a single property. In particular,
dot (.) are not allowed.name - property nameConstraintValidatorContext addConstraintViolation()
ConstraintViolation to be generated if the
constraint validator marks 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.