org.jtransfo.internal
Class TaggedConverter
java.lang.Object
org.jtransfo.internal.TaggedConverter
- All Implemented Interfaces:
- Converter
public class TaggedConverter
- extends Object
- implements Converter
Converter which delegated to the specified converters for the tags. It will always also handle "*" as first tag.
TaggedConverter
public TaggedConverter()
addConverters
public void addConverters(String[] tags,
Converter converter)
- Add the converter which should be used for a specific tag.
- Parameters:
tags - tags for which the converter appliesconverter - converter for the tag
convert
public void convert(Object source,
Object target,
String... tags)
throws JTransfoException
- Description copied from interface:
Converter
- Conversion from (part of) the source object to the target object.
- Specified by:
convert in interface Converter
- Parameters:
source - source to read fromtarget - target to write intotags - tags which indicate which fields can be converted based on MapOnly annotations
- Throws:
JTransfoException - problem during conversion
Copyright © 2013. All rights reserved.