Package org.apache.commons.beanutils
Class ConvertUtilsBean2
java.lang.Object
org.apache.commons.beanutils.ConvertUtilsBean
org.apache.commons.beanutils.ConvertUtilsBean2
ConvertUtilsBean
implementation that delegates convert()
methods to the new ConvertUtilsBean.convert(Object, Class)
method.
To configure this implementation for the current context ClassLoader invoke
BeanUtilsBean.setInstance(new BeanUtilsBean2());
- Since:
- 1.8.0
- Version:
- $Id$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDelegates to the newConvertUtilsBean.convert(Object, Class)
method.Delegates to the newConvertUtilsBean.convert(Object, Class)
method.Delegates to the newConvertUtilsBean.convert(Object, Class)
method.Methods inherited from class org.apache.commons.beanutils.ConvertUtilsBean
convert, deregister, deregister, getDefaultBoolean, getDefaultByte, getDefaultCharacter, getDefaultDouble, getDefaultFloat, getDefaultInteger, getDefaultLong, getDefaultShort, getInstance, lookup, lookup, register, register, setDefaultBoolean, setDefaultByte, setDefaultCharacter, setDefaultDouble, setDefaultFloat, setDefaultInteger, setDefaultLong, setDefaultShort
-
Constructor Details
-
ConvertUtilsBean2
public ConvertUtilsBean2()
-
-
Method Details
-
convert
Delegates to the newConvertUtilsBean.convert(Object, Class)
method.- Overrides:
convert
in classConvertUtilsBean
- Parameters:
value
- Value to be converted (may be null)- Returns:
- The converted String value or null if value is null
- See Also:
-
convert
Delegates to the newConvertUtilsBean.convert(Object, Class)
method.- Overrides:
convert
in classConvertUtilsBean
- Parameters:
value
- Value to be converted (may be null)clazz
- Java class to be converted to (must not be null)- Returns:
- The converted value or null if value is null
- See Also:
-
convert
Delegates to the newConvertUtilsBean.convert(Object, Class)
method.- Overrides:
convert
in classConvertUtilsBean
- Parameters:
value
- Array of values to be convertedclazz
- Java array or element class to be converted to (must not be null)- Returns:
- The converted value
- See Also:
-