| Constructor and Description |
|---|
Mapper(IJenevaContext context)
Initializes new instance of the Mapper class
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Dtobase> |
filter(T item,
java.lang.Class<?> type,
byte level)
Recursively goes through fields of the item object and copies selectively field values to the returned object.
|
<T extends Dtobase> |
filterList(java.lang.Iterable<T> items,
java.lang.Class<?> type,
byte level)
Recursively goes through fields of each object in collection and copies selectively field values to the returned object.
|
<T extends Dtobase> |
map(T source,
java.lang.Class<?> type)
Recursively goes through the source object's fields and assigns back-reference if needed.
|
<T extends Dtobase> |
mapCollection(java.lang.Iterable<T> source,
java.lang.Class<?> type)
Recursively goes through the source object's collection fields and assigns back-reference if needed.
|
<T extends Dtobase> |
mapTo(T source,
T dest,
java.lang.Class<?> type)
Recursively copies fields from source object to the dest object according to Jeneva rules
Only assigned fields are copied.
|
<T extends Dtobase> |
mapToCollection(java.util.Collection<T> source,
java.util.Collection<T> dest,
java.lang.Class<?> type,
T parent)
Recursively copies objects' fields from source collection to the dest collection according to Jeneva rules.
|
public Mapper(IJenevaContext context)
context - Jeneva contextpublic <T extends Dtobase> void mapTo(T source, T dest, java.lang.Class<?> type)
public <T extends Dtobase> void mapToCollection(java.util.Collection<T> source, java.util.Collection<T> dest, java.lang.Class<?> type, T parent)
mapToCollection in interface IMappersource - source domain/DTO object collectiondest - destination domain/DTO object collectiontype - domain/DTO object typeparent - parent domain/DTO objectpublic <T extends Dtobase> void mapCollection(java.lang.Iterable<T> source, java.lang.Class<?> type)
mapCollection in interface IMappersource - source domain/DTO object collectiontype - source domain/DTO object typepublic <T extends Dtobase> void map(T source, java.lang.Class<?> type)
public <T extends Dtobase> java.util.List<T> filterList(java.lang.Iterable<T> items, java.lang.Class<?> type, byte level)
filterList in interface IMapperitems - collection of domain/DTO objectstype - domain/DTO object typelevel - required serialization levelpublic <T extends Dtobase> T filter(T item, java.lang.Class<?> type, byte level)