Class ValidationHelper


  • public class ValidationHelper
    extends Object
    • Field Detail

      • ATTR_SKIP_VALIDATORS

        public static final Object ATTR_SKIP_VALIDATORS
      • UNHANDLED_NODE

        public static final Object UNHANDLED_NODE
    • Method Detail

      • getLeafPropertyName

        public static String getLeafPropertyName​(List<javax.validation.Path.Node> nodes)
      • getPenultimateValueAlongPath

        public static Object getPenultimateValueAlongPath​(Object base,
                                                          List<javax.validation.Path.Node> nodes)
      • getPropertyFromViolation

        public static Object getPropertyFromViolation​(javax.validation.ConstraintViolation<?> violation,
                                                      List<javax.validation.Path.Node> nodes,
                                                      int index)
      • mapViolationMessagesByPropertyPath

        public static Map<String,​String> mapViolationMessagesByPropertyPath​(Collection<javax.validation.ConstraintViolation<?>> violations)
      • validateBean

        public static Set<javax.validation.ConstraintViolation<?>> validateBean​(Object bean,
                                                                                Class<?>... groups)