Package de.xima.fc.gui.util
Class ValidationHelper
- java.lang.Object
-
- de.xima.fc.gui.util.ValidationHelper
-
public class ValidationHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Object
ATTR_SKIP_VALIDATORS
static Object
UNHANDLED_NODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getLeafPropertyName(List<javax.validation.Path.Node> nodes)
static Object
getPenultimateValueAlongPath(Object base, List<javax.validation.Path.Node> nodes)
static Object
getPropertyFromViolation(javax.validation.ConstraintViolation<?> violation, List<javax.validation.Path.Node> nodes, int index)
static Map<String,String>
mapViolationMessagesByPropertyPath(Collection<javax.validation.ConstraintViolation<?>> violations)
static Set<javax.validation.ConstraintViolation<?>>
validateBean(Object bean, Class<?>... groups)
-
-
-
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)
-
-