org.apache.commons.beanutils
Interface Converter

All Known Subinterfaces:
LocaleConverter
All Known Implementing Classes:
AbstractArrayConverter, BaseLocaleConverter, BigDecimalConverter, BigIntegerConverter, BooleanConverter, ByteConverter, CharacterConverter, ClassConverter, DoubleConverter, FileConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringConverter, URLConverter

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.7 $ $Date: 2004/02/28 13:18:33 $
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.
 

Method Detail

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


Copyright (c) 2001-2004 - Apache Software Foundation