|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.BeanValidatorUtil
public class BeanValidatorUtil
The helper class for validation module.
| Constructor Summary | |
|---|---|
protected |
BeanValidatorUtil()
|
| Method Summary | |
|---|---|
static void |
convert(BeanValidator<?> validator,
java.lang.String fieldName,
java.lang.String value,
java.lang.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. |
static java.beans.EventSetDescriptor |
getPropertyChangeListenerDescriptor(java.lang.Class beanClass)
|
static com.opensymphony.xwork2.util.ValueStack |
getSharedValueStack()
|
static void |
setValidatorBean(JAXXObject ui,
java.lang.Object bean,
java.lang.String... excludeIds)
Convinient method to attach a bean to all validators of an JAXXObject. |
static void |
setValidatorChanged(JAXXObject ui,
boolean newValue,
java.lang.String... excludeIds)
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,
java.lang.Object bean,
java.lang.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,
java.lang.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,
java.lang.String fieldName,
java.lang.String value,
java.lang.Class<?> valueClass)
validator - validator to be involvedfieldName - the name of the bean propertyvalue - the actual value to convertvalueClass - the type of the conversionpublic static java.beans.EventSetDescriptor getPropertyChangeListenerDescriptor(java.lang.Class beanClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||