nl.openedge.baritus.converters
Interface Converter

All Known Subinterfaces:
LocaleConverter
All Known Implementing Classes:
BaseLocaleConverter, BooleanConverter, ByteConverter, CharacterConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, NoopConverter, ShortConverter

public interface Converter

General purpose data type converter. For this interface has the same signature of the BeanUtils package, so it's easy to convert/ re-use converters.

Author:
Eelco Hillenius

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 © 2003-2004 Open Edge. All Rights Reserved.