FreeHEP API
Version current

org.freehep.util
Interface ObjectConverter


public interface ObjectConverter

Object converter which allows conversion of objects of one class into another.

Version:
$Id: ObjectConverter.java,v 1.1 2004/07/26 19:03:49 duns Exp $
Author:
Mark Donszelmann
Source Code:
ObjectConverter.java

Method Summary
 Object convert(Object source)
          Returns the converted source object of a class compatible with the one returned under convertsTo().
 Class convertsTo(Object source)
          Returns the class the given source object can be converterd to by this converter.
 

Method Detail

convertsTo

public Class convertsTo(Object source)
Returns the class the given source object can be converterd to by this converter. Returns null if the given source object cannot be converted.


convert

public Object convert(Object source)
Returns the converted source object of a class compatible with the one returned under convertsTo().


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.