org.locomotive.directory
Interface PropertyConverter

All Known Implementing Classes:
IntegerConverter, StringConverter

public interface PropertyConverter

PropertyConverter defines an interface for converting values of one object to another object. Normally the input value is a String, to some an object of the target class, but in theory the input value can be anything. PropertyConverter objects for specific classes can be registered for use by with a NameService.

Version:
$Id: PropertyConverter.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).
See Also:
also the NameService##addPropertyConverter()

Method Summary
 java.lang.Object convertProperty(java.lang.Object value)
          Convert an object of one class to an object to another class.
 

Method Detail

convertProperty

public java.lang.Object convertProperty(java.lang.Object value)
Convert an object of one class to an object to another class.
Parameters:
value - The value to convert.
Returns:
The object resulting from the conversion.