public abstract class AbstractConverter extends Object implements Converter
| Constructor and Description |
|---|
AbstractConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
accessExceptionMessage()
Get exception message for IllegalAccessException.
|
abstract String |
argumentExceptionMessage()
Get exception message for IllegalArgumentException.
|
void |
convert(Object source,
Object target,
String... tags)
Conversion from (part of) the source object to the target object.
|
abstract void |
doConvert(Object source,
Object target,
String... tags)
Actual conversion code, exceptions handled by invoker.
|
public abstract void doConvert(Object source, Object target, String... tags) throws JTransfoException, IllegalAccessException, IllegalArgumentException
source - source objecttarget - target objecttags - tags which indicate which fields can be converted based on MapOnly annotationsJTransfoException - oopsIllegalAccessException - oopsIllegalArgumentException - oopspublic abstract String accessExceptionMessage()
public abstract String argumentExceptionMessage()
public void convert(Object source, Object target, String... tags) throws JTransfoException
Converterconvert in interface Convertersource - source to read fromtarget - target to write intotags - tags which indicate which fields can be converted based on MapOnly annotationsJTransfoException - problem during conversionCopyright © 2017. All rights reserved.