org.codehaus.spice.converter
Interface Converter

All Known Implementing Classes:
AbstractConverter, AbstractMasterConverter

public interface Converter

Instances of this interface are used to convert between different types.

Version:
$Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $
Author:
Peter Donald

Method Summary
 Object convert(Class destination, Object original, Object context)
          Convert original to destination type.
 

Method Detail

convert

public Object convert(Class destination,
                      Object original,
                      Object context)
               throws ConverterException
Convert original to destination type. Destination is passed so that one converter can potentiall convert to multiple different types.

Parameters:
destination - the destinaiton type
original - the original type
context - the context in which to convert
Returns:
the converted object
Throws:
ConverterException - if an error occurs


Copyright © 2000-2003 Codehaus. All Rights Reserved.