org.apache.commons.beanutils
Interface Converter
- All Known Subinterfaces:
- LocaleConverter
- All Known Implementing Classes:
- AbstractArrayConverter, BaseLocaleConverter, BigDecimalConverter, BigIntegerConverter, BooleanConverter, ByteConverter, CharacterConverter, ClassConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringConverter
- public interface Converter
General purpose data type converter that can be registered and used within the BeanUtils package to manage the conversion of objects from one type to another.
- Since:
- 1.3
- Version:
- $Revision: 1.4 $ $Date: 2003/01/15 21:59:38 $
- Author:
- Craig McClanahan, Paulo Gaspar
| Method Summary |
java.lang.Object |
convert(java.lang.Class type, java.lang.Object value)
Convert the specified input object into an output object of the specified type. |
convert
public java.lang.Object convert(java.lang.Class type,
java.lang.Object value)
-
Convert the specified input object into an output object of the specified type.
-
- Parameters:
type - Data type to which this value should be converted
value - The input value to be converted
- Throws:
ConversionException - if conversion cannot be performed successfully
Please see keelframework.org for information about new Keel releases.