Package br.com.caelum.vraptor.validator

Examples of br.com.caelum.vraptor.validator.SimpleMessage


  }

  @Override
  public <T> Validator addAll(Set<ConstraintViolation<T>> errors) {
    for (ConstraintViolation<T> v : errors) {
      add(new SimpleMessage(v.getPropertyPath().toString(), v.getMessage()));
    }
    return this;
  }
View Full Code Here


      for (ConstraintViolation<Object> v : violations) {
        BeanValidatorContext ctx = new BeanValidatorContext(v);
        String msg = interpolator.interpolate(v.getMessageTemplate(), ctx, locale);
        String category = extractCategory(methodInfo.getValuedParameters(), v);
        validator.add(new SimpleMessage(category, msg));
        logger.debug("added message {}={} for contraint violation", category, msg);
      }
    }
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.validator.SimpleMessage

Copyright © 2018 www.massapicom. 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.