org.apache.commons.beanutils

Interface Converter

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
Objectconvert(Class type, Object value)
Convert the specified input object into an output object of the specified type.

Method Detail

convert

public 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 (c) 2001-2004 - Apache Software Foundation