public class ConvertInterceptorChainPiece extends Object implements ConvertSourceTarget
Constructor and Description |
---|
ConvertInterceptorChainPiece(ConvertInterceptor interceptor,
ConvertSourceTarget next)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
convert(Object source,
T target,
boolean isTargetTo,
String... tags)
Fill the target object with the values from the source object.
|
public ConvertInterceptorChainPiece(ConvertInterceptor interceptor, ConvertSourceTarget next)
interceptor
- actual interceptor for this piece of the chainnext
- next piece of the chainpublic <T> T convert(Object source, T target, boolean isTargetTo, String... tags)
ConvertSourceTarget
This will write all values from the transfer object, other fields are not touched.
convert
in interface ConvertSourceTarget
T
- type of object for targetsource
- 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.Copyright © 2022. All rights reserved.