Package javax.validation.ConstraintValidatorContext

Examples of javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.addNode()


        context.disableDefaultConstraintViolation();
        ConstraintViolationBuilder violationBuilder = context
            .buildConstraintViolationWithTemplate(message);

        for (String propertyName : propertyPaths) {
          NodeBuilderDefinedContext nbdc = violationBuilder
              .addNode(propertyName);
          nbdc.addConstraintViolation();
        }
      }
    } catch (Exception ex) {
View Full Code Here


          while (nodeIter.hasNext()) {
            sb.append('.').append(nodeIter.next());
          }
        }

        builder.addNode(sb.toString()).addConstraintViolation();
      } else {
                builder.addConstraintViolation();
            }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.