// Copyright 2004, FreeHEP. package org.freehep.util; /** * Object converter which allows conversion of objects of one class into * another. * * * @author Mark Donszelmann * @version $Id: ObjectConverter.java,v 1.3 2008-05-04 12:22:27 murkle Exp $ */ public interface ObjectConverter { /** * Returns the class the given source object can be converterd to by this * converter. Returns null if the given source object cannot be converted. */ public Class convertsTo(Object source); /** * Returns the converted source object of a class compatible with the one * returned under convertsTo(). */ public Object convert(Object source); }