org.apache.commons.beanutils
Interface Converter
- All Known Subinterfaces:
- LocaleConverter
- All Known Implementing Classes:
- SqlTimestampConverter, AbstractArrayConverter, ClassConverter, SqlTimeConverter, ByteConverter, ShortConverter, FloatConverter, SqlDateConverter, CharacterConverter, BigIntegerConverter, StringConverter, BigDecimalConverter, BooleanConverter, DoubleConverter, LongConverter, IntegerConverter
- 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 convertedvalue
- The input value to be converted- Throws:
ConversionException
- if conversion cannot be performed
successfully
Copyright (c) 2001-2003 - Apache Software Foundation