| Constructor and Description |
|---|
TaggedConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConverters(String[] tags,
Converter converter)
Add the converter which should be used for a specific tag.
|
void |
convert(Object source,
Object target,
String... tags)
Conversion from (part of) the source object to the target object.
|
public void addConverters(String[] tags, Converter converter)
tags - tags for which the converter appliesconverter - converter for the tagpublic 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.