public class

ConvertUtilsBean2

extends ConvertUtilsBean
java.lang.Object
   ↳ org.apache.commons.beanutils.ConvertUtilsBean
     ↳ org.apache.commons.beanutils.ConvertUtilsBean2

Class Overview

ConvertUtilsBean implementation that delegates convert() methods to the new convert(Object, Class) method.

To configure this implementation for the current context ClassLoader invoke BeanUtilsBean.setInstance(new BeanUtilsBean2());

See Also

Summary

Public Constructors
ConvertUtilsBean2()
Public Methods
Object convert(String value, Class clazz)
Delegates to the new convert(Object, Class) method.
String convert(Object value)
Delegates to the new convert(Object, Class) method.
Object convert(String[] value, Class clazz)
Delegates to the new convert(Object, Class) method.
[Expand]
Inherited Methods
From class org.apache.commons.beanutils.ConvertUtilsBean
From class java.lang.Object

Public Constructors

public ConvertUtilsBean2 ()

Public Methods

public Object convert (String value, Class clazz)

Delegates to the new convert(Object, Class) method.

Parameters
value Value to be converted (may be null)
clazz Java class to be converted to
Returns
  • The converted value

public String convert (Object value)

Delegates to the new convert(Object, Class) method.

Parameters
value Value to be converted (may be null)
Returns
  • The converted String value

public Object convert (String[] value, Class clazz)

Delegates to the new convert(Object, Class) method.

Parameters
value Array of values to be converted
clazz Java array or element class to be converted to
Returns
  • The converted value