Interface ConstraintValidatorContext.ConstraintViolationBuilder

  • Enclosing interface:

    public static interface ConstraintValidatorContext.ConstraintViolationBuilder
    ConstraintViolation builder allowing to optionally associate the violation report to a sub path.

    To create the ConstraintViolation, one must call either one of the addConstraintViolation() methods available in one of the interfaces of the fluent API.

    If another method is called after addConstraintViolation() on ConstraintViolationBuilder or any of its associated objects an IllegalStateException is raised.