org.nuiton.validator.bean
Class BeanValidatorUtil
java.lang.Object
org.nuiton.validator.bean.BeanValidatorUtil
public class BeanValidatorUtil
- extends Object
The helper class for bean validation module.
- Since:
- 2.0
- Author:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanValidatorUtil
protected BeanValidatorUtil()
convert
public static void convert(BeanValidator<?> validator,
String fieldName,
String value,
Class<?> valueClass)
- Convert a value to a given type and then if was succesffull try to set it
in the bean manage by the validator.
- Parameters:
validator - validator to be involvedfieldName - the name of the bean propertyvalue - the actual value to convertvalueClass - the type of the conversion
getScopes
public static EnumSet<NuitonValidatorScope> getScopes(List<BeanValidatorMessage<?>> messages)
getScopesCount
public static EnumMap<NuitonValidatorScope,Integer> getScopesCount(List<BeanValidatorMessage<?>> messages)
Copyright © 2011-2012 CodeLutin. All Rights Reserved.