public interface TwoWayConverter extends Converter
Modifier and Type | Method and Description |
---|---|
Object |
convertTargetToSourceClass(Object target,
Class sourceClass)
Convert the provided target object argument to an instance of the specified source class.
|
convertSourceToTargetClass, getSourceClass, getTargetClass
Object convertTargetToSourceClass(Object target, Class sourceClass) throws Exception
target
- the target object to convert, which must be an instance of Converter.getTargetClass()
sourceClass
- the source class to convert the target to, which must be equal to or a specialization of
Converter.getSourceClass()
sourceClass
Exception
- an exception occurred performing the conversion