org.apache.commons.convert1
Interface Converter

All Known Implementing Classes:
ArrayConverter, BigDecimalConverter, BigIntegerConverter, BooleanConverter, ByteConverter, CharacterConverter, ClassConverter, DoubleConverter, FileConverter, FloatConverter, FormatConverter, IdentityConverter, IntegerConverter, LongConverter, ParseConverter, 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:
0.1
Version:
$Id: Converter.java 155441 2005-02-26 13:19:22Z dirkv $
Author:
Craig McClanahan, Paulo Gaspar

Method Summary
 Object convert(Class type, Object value)
          Convert the specified input object into an output object of the specified type.
 

Method Detail

convert

Object convert(Class type,
               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 © 2003-2010 The Apache Software Foundation. All Rights Reserved.