org.apache.commons.beanutils

Class ConvertUtilsBean2

public class ConvertUtilsBean2 extends ConvertUtilsBean

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

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

Since: 1.8.0

Version: $Revision: 552381 $ $Date: 2007-07-02 03:00:17 +0100 (Mon, 02 Jul 2007) $

See Also: BeanUtilsBean2

Method Summary
Stringconvert(Object value)
Delegates to the new ConvertUtilsBean method.
Objectconvert(String value, Class clazz)
Delegates to the new ConvertUtilsBean method.
Objectconvert(String[] value, Class clazz)
Delegates to the new ConvertUtilsBean method.

Method Detail

convert

public String convert(Object value)
Delegates to the new ConvertUtilsBean method.

Parameters: value Value to be converted (may be null)

Returns: The converted String value

See Also: (String[], Class)

convert

public Object convert(String value, Class clazz)
Delegates to the new ConvertUtilsBean method.

Parameters: value Value to be converted (may be null) clazz Java class to be converted to

Returns: The converted value

See Also: (String[], Class)

convert

public Object convert(String[] value, Class clazz)
Delegates to the new ConvertUtilsBean method.

Parameters: value Array of values to be converted clazz Java array or element class to be converted to

Returns: The converted value

See Also: (String[], Class)

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.