|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Converter.java | - | - | - | - |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Copyright (C) The Spice Group. All rights reserved.
|
|
| 3 |
*
|
|
| 4 |
* This software is published under the terms of the Spice
|
|
| 5 |
* Software License version 1.1, a copy of which has been included
|
|
| 6 |
* with this distribution in the LICENSE.txt file.
|
|
| 7 |
*/
|
|
| 8 |
package org.codehaus.spice.converter;
|
|
| 9 |
|
|
| 10 |
/**
|
|
| 11 |
* Instances of this interface are used to convert between different types.
|
|
| 12 |
*
|
|
| 13 |
* @author Peter Donald
|
|
| 14 |
* @version $Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $
|
|
| 15 |
*/
|
|
| 16 |
public interface Converter |
|
| 17 |
{
|
|
| 18 |
/**
|
|
| 19 |
* Convert original to destination type.
|
|
| 20 |
* Destination is passed so that one converter can potentiall
|
|
| 21 |
* convert to multiple different types.
|
|
| 22 |
*
|
|
| 23 |
* @param destination the destinaiton type
|
|
| 24 |
* @param original the original type
|
|
| 25 |
* @param context the context in which to convert
|
|
| 26 |
* @return the converted object
|
|
| 27 |
* @exception ConverterException if an error occurs
|
|
| 28 |
*/
|
|
| 29 |
Object convert( Class destination, Object original, Object context ) |
|
| 30 |
throws ConverterException;
|
|
| 31 |
} |
|
| 32 |
|
|
||||||||||