org.jtransfo.internal
Class ConvertInterceptorChainPiece
java.lang.Object
org.jtransfo.internal.ConvertInterceptorChainPiece
- All Implemented Interfaces:
- ConvertSourceTarget
public class ConvertInterceptorChainPiece
- extends Object
- implements ConvertSourceTarget
A piece of the chain with convert interceptors.
|
Method Summary |
|
convert(Object source,
T target,
boolean isTargetTo,
String... tags)
Fill the target object with the values from the source object. |
ConvertInterceptorChainPiece
public ConvertInterceptorChainPiece(ConvertInterceptor interceptor,
ConvertSourceTarget next)
- Constructor.
- Parameters:
interceptor - actual interceptor for this piece of the chainnext - next piece of the chain
convert
public <T> T convert(Object source,
T target,
boolean isTargetTo,
String... tags)
- Description copied from interface:
ConvertSourceTarget
- 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.
- Specified by:
convert in interface ConvertSourceTarget
- 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
Copyright © 2014. All rights reserved.