jTransfo, 0.10

org.jtransfo
Interface Converter

All Known Implementing Classes:
AbstractConverter, TaggedConverter, ToDomainConverter, ToToConverter

public interface Converter

Converter, typically converts one field from the source object to a target object.


Method Summary
 void convert(Object source, Object target, String... tags)
          Conversion from (part of) the source object to the target object.
 

Method Detail

convert

void convert(Object source,
             Object target,
             String... tags)
             throws JTransfoException
Conversion from (part of) the source object to the target object.

Parameters:
source - source to read from
target - target to write into
tags - tags which indicate which fields can be converted based on MapOnly annotations
Throws:
JTransfoException - problem during conversion

jTransfo, 0.10

Copyright © 2013. All rights reserved.