org.ontoware.rdf2go.util
Interface Converter<FROM,TO>

Type Parameters:
FROM - The class that is the source of conversion
TO - The class that is converted to

public interface Converter<FROM,TO>

Converts instances from one type to another. Useful for implementing adapters.

Author:
sauermann

Method Summary
 TO convert(FROM source)
          convert the passed object to the outgoing object
 

Method Detail

convert

TO convert(FROM source)
           throws ConversionException
convert the passed object to the outgoing object

Parameters:
source - the source object to convert
Returns:
the converted object
Throws:
ConversionException - if something goes wrong.


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.