com.iplanet.jato.util
Interface ConvertibleType
- public interface ConvertibleType
During type conversion by the TypeConverter
class, value objects
that implement this interface will be called upon to provide their own type
conversion objects instead of using the conversions registered with the
TypeConverter
class.
- Version:
- JATO/1.2.2 $Id: ConvertibleType.java,v 1.4 2002/03/16 03:26:38 todd Exp $
Method Summary |
TypeConversion |
getTypeConversion(java.lang.Object targetTypeKey)
Provides a custom type conversion object used to convert the type
of this object. |
getTypeConversion
public TypeConversion getTypeConversion(java.lang.Object targetTypeKey)
- Provides a custom type conversion object used to convert the type
of this object.
- Parameters:
targetTypeKey
- The target conversion key, normally a class or String.- Returns:
- A type conversion object valid for the specified conversion,
or null if the
TypeConverter
class should attempt
to use a previously registered type conversion object to
convert the value of this object.