jTransfo, 0.14

org.jtransfo
Interface ConvertSourceTarget

All Known Implementing Classes:
ConvertInterceptorChainPiece, JTransfoImpl

public interface ConvertSourceTarget

Core jTransfo convert method.


Method Summary
<T> T
convert(Object source, T target, boolean isTargetTo, String... tags)
          Fill the target object with the values from the source object.
 

Method Detail

convert

<T> T convert(Object source,
              T target,
              boolean isTargetTo,
              String... tags)
Fill the target object with the values from the source object.

This will write all values from the transfer object, other fields are not touched.

Type Parameters:
T - type of object for target
Parameters:
source - source object. Should not be null.
target - target object. Should not be null.
isTargetTo - is the target class the transfer object?
tags - tags which indicate which fields can be converted based on MapOnly annotations. Tags are processed from left to right.
Returns:
target object

jTransfo, 0.14

Copyright © 2014. All rights reserved.