jaxx.runtime.validator
Class BeanValidatorUtil

java.lang.Object
  extended by jaxx.runtime.validator.BeanValidatorUtil
Direct Known Subclasses:
SwingValidatorUtil

Deprecated. since 2.2.4, the code is moved into the org.nuiton:nuiton-validator project, will be removed in version 2.3

@Deprecated
public class BeanValidatorUtil
extends Object

The helper class for validation module.

Author:
tchemit

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

BeanValidatorUtil

protected BeanValidatorUtil()
Deprecated. 
Method Detail

getSharedValueStack

public static com.opensymphony.xwork2.util.ValueStack getSharedValueStack()
Deprecated. 

setValidatorBean

public static void setValidatorBean(JAXXObject ui,
                                    Object bean,
                                    String... excludeIds)
Deprecated. 
Convinient method to attach a bean to all validators of an JAXXObject.

It is possible to exclude some validator to be treated.

Parameters:
ui - the ui containing the validatros to treate
bean - the bean to attach in validators (can be null)
excludeIds - the list of validator id to exclude

setValidatorChanged

public static void setValidatorChanged(JAXXObject ui,
                                       boolean newValue,
                                       String... excludeIds)
Deprecated. 
Convinient method to set the changed property to all validators of an JAXXObject.

It is possible to exclude some validator to be treated.

Parameters:
ui - the ui containing the validatros to treate
newValue - the new value to set in changed validator property
excludeIds - the list of validator id to exclude

convert

public 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.

Parameters:
validator - validator to be involved
fieldName - the name of the bean property
value - the actual value to convert
valueClass - the type of the conversion

getPropertyChangeListenerDescriptor

public static EventSetDescriptor getPropertyChangeListenerDescriptor(Class<?> beanClass)
Deprecated. 

getScopes

public static EnumSet<BeanValidatorScope> getScopes(List<BeanValidatorMessage<?>> messages)
Deprecated. 

getScopesCount

public static EnumMap<BeanValidatorScope,Integer> getScopesCount(List<BeanValidatorMessage<?>> messages)
Deprecated. 


Copyright © 2008-2011 CodeLutin. All Rights Reserved.