Package de.xima.fc.gui.util
Class ValidationHelper
java.lang.Object
de.xima.fc.gui.util.ValidationHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLabelForCustomMode(Locale locale, Class<? extends Label.Custom> customLabel) static StringgetLabelForMode(Locale locale, javax.faces.component.UIComponent input, Class<? extends Label> labelMode) getLabelModeFromViolation(javax.validation.ConstraintViolation<?> violation) static StringgetLeafPropertyName(List<javax.validation.Path.Node> nodes) static ObjectgetPenultimateValueAlongPath(Object base, List<javax.validation.Path.Node> nodes) static ObjectgetPropertyFromViolation(javax.validation.ConstraintViolation<?> violation, List<javax.validation.Path.Node> nodes, int index) mapViolationMessagesByPropertyPath(Collection<javax.validation.ConstraintViolation<?>> violations) static Set<javax.validation.ConstraintViolation<?>>validateBean(Object bean, Class<?>... groups)
-
Field Details
-
ATTR_SKIP_VALIDATORS
-
UNHANDLED_NODE
-
-
Method Details
-
getLabelForCustomMode
public static String getLabelForCustomMode(Locale locale, Class<? extends Label.Custom> customLabel) -
getLabelForMode
-
getLabelModeFromViolation
-
getLeafPropertyName
-
getPenultimateValueAlongPath
-
getPropertyFromViolation
-
mapViolationMessagesByPropertyPath
public static Map<String,String> mapViolationMessagesByPropertyPath(Collection<javax.validation.ConstraintViolation<?>> violations) -
validateBean
-