public interface TwoWayConverter extends Converter
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertTargetToSourceClass(java.lang.Object target,
java.lang.Class sourceClass)
Convert the provided target object argument to an instance of the specified source class.
|
convertSourceToTargetClass, getSourceClass, getTargetClass
java.lang.Object convertTargetToSourceClass(java.lang.Object target, java.lang.Class sourceClass) throws java.lang.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
java.lang.Exception
- an exception occurred performing the conversion