| org.springframework.binding.convert.Converter
All known Subclasses: org.springframework.binding.convert.support.AbstractConverter,
Converter | public interface Converter (Code) | | A type converter converts objects from one type to another. They may support
conversion of multiple source types to multiple target types.
Implementations of this interface are thread-safe.
author: Keith Donald |
convert | public Object convert(Object source, Class targetClass, ConversionContext context) throws ConversionException(Code) | | Convert the provided source object argument to an instance of the
specified target class.
Parameters: source - the source object to convert, its class must be one of thesupported sourceClasses Parameters: targetClass - the target class to convert the source to, must be oneof the supported targetClasses Parameters: context - an optional conversion context that may be used toinfluence the conversion process the converted object, an instance of the target type throws: ConversionException - an exception occured during the conversion |
getSourceClasses | public Class[] getSourceClasses()(Code) | | The source classes this converter can convert from.
the supported source classes |
getTargetClasses | public Class[] getTargetClasses()(Code) | | The target classes this converter can convert to.
the supported target classes |
|
|