public class TaggedConverter extends Object implements Converter
Constructor and Description |
---|
TaggedConverter() |
Modifier and Type | Method and Description |
---|---|
void |
addConverters(Converter converter,
String... tags)
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(Converter converter, String... tags)
tags
- tags for which the converter appliesconverter
- converter for the tagpublic void convert(Object source, Object target, String... tags) throws JTransfoException
Converter
convert
in interface Converter
source
- source to read fromtarget
- target to write intotags
- tags which indicate which fields can be converted based on MapOnly
annotationsJTransfoException
- problem during conversionCopyright © 2022. All rights reserved.