biz.hammurapi.convert
Interface Converter


public interface Converter

Converts objects from one type to another, e.g. Integer to String.

Author:
Pavel

Method Summary
 java.lang.Object convert(java.lang.Object source, java.lang.Class targetType, Context context)
          Converts object to requested target type.
 

Method Detail

convert

java.lang.Object convert(java.lang.Object source,
                         java.lang.Class targetType,
                         Context context)
                         throws ConversionException
Converts object to requested target type.

Parameters:
source - Source object.
targetType - Target type.
context - Conversion context.
Returns:
Converted object.
Throws:
ConversionException


Copyright © 2003 Hammurapi Group. All Rights Reserved.