|
jTransfo, 0.10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jtransfo.internal.AbstractConverter
public abstract class AbstractConverter
Converter class to copy one field to the transfer object class.
| Constructor Summary | |
|---|---|
AbstractConverter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConverter()
| Method Detail |
|---|
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 annotations
JTransfoException - oops
IllegalAccessException - oops
IllegalArgumentException - oopspublic abstract String accessExceptionMessage()
public abstract String argumentExceptionMessage()
public void convert(Object source,
Object target,
String... tags)
throws JTransfoException
Converter
convert in interface Convertersource - source to read fromtarget - target to write intotags - tags which indicate which fields can be converted based on MapOnly annotations
JTransfoException - problem during conversion
|
jTransfo, 0.10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||