|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.validator.BeanValidatorUtil
@Deprecated public class BeanValidatorUtil
The helper class for validation module.
| Constructor Summary | |
|---|---|
protected |
BeanValidatorUtil()
Deprecated. |
| Method Summary | |
|---|---|
static void |
convert(BeanValidator<?> validator,
String fieldName,
String value,
Class<?> valueClass)
Deprecated. Convert a value to a given type and then if was succesffull try to set it in the bean manage by the validator. |
static EventSetDescriptor |
getPropertyChangeListenerDescriptor(Class<?> beanClass)
Deprecated. |
static EnumSet<BeanValidatorScope> |
getScopes(List<BeanValidatorMessage<?>> messages)
Deprecated. |
static EnumMap<BeanValidatorScope,Integer> |
getScopesCount(List<BeanValidatorMessage<?>> messages)
Deprecated. |
static com.opensymphony.xwork2.util.ValueStack |
getSharedValueStack()
Deprecated. |
static void |
setValidatorBean(JAXXObject ui,
Object bean,
String... excludeIds)
Deprecated. Convinient method to attach a bean to all validators of an JAXXObject. |
static void |
setValidatorChanged(JAXXObject ui,
boolean newValue,
String... excludeIds)
Deprecated. Convinient method to set the changed property to all validators of an JAXXObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BeanValidatorUtil()
| Method Detail |
|---|
public static com.opensymphony.xwork2.util.ValueStack getSharedValueStack()
public static void setValidatorBean(JAXXObject ui,
Object bean,
String... excludeIds)
ui - the ui containing the validatros to treatebean - the bean to attach in validators (can be null)excludeIds - the list of validator id to exclude
public static void setValidatorChanged(JAXXObject ui,
boolean newValue,
String... excludeIds)
ui - the ui containing the validatros to treatenewValue - the new value to set in changed validator propertyexcludeIds - the list of validator id to exclude
public static void convert(BeanValidator<?> validator,
String fieldName,
String value,
Class<?> valueClass)
validator - validator to be involvedfieldName - the name of the bean propertyvalue - the actual value to convertvalueClass - the type of the conversionpublic static EventSetDescriptor getPropertyChangeListenerDescriptor(Class<?> beanClass)
public static EnumSet<BeanValidatorScope> getScopes(List<BeanValidatorMessage<?>> messages)
public static EnumMap<BeanValidatorScope,Integer> getScopesCount(List<BeanValidatorMessage<?>> messages)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||