public abstract class ModelMapper extends ContextFilter
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
protected Map |
model2target |
_cache, _context| Constructor and Description |
|---|
ModelMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map |
c2c()
TODO identity versus null mappings
|
Timestamp |
event2timestamp(Event event) |
Collection |
filter(String fieldId,
Collection source)
iterates over the contents of the collection and filters each.
|
Filterable |
filter(String fieldId,
Filterable source) |
Map |
filter(String fieldId,
Map source)
filters both the key and value sets of the map.
|
protected Class |
findClass(Class source) |
Collection |
findCollection(Collection source) |
Object |
findCollectionTarget(Object current)
extension point which subclasses can override to better map the
values of collections and maps.
|
Object |
findKeyTarget(Object current)
extension point which subclasses can override to better map the
keys of maps.
|
Map |
findMap(Map source) |
Object |
findTarget(Object current)
known immutables are return unchanged.
|
Collection |
map(Collection source) |
ModelBased |
map(Filterable source) |
Map |
map(Map source) |
double |
nullSafeDouble(Double d) |
float |
nullSafeFloat(Float f) |
int |
nullSafeInt(Integer i) |
long |
nullSafeLong(Long l) |
static String |
stackAsString(Throwable t) |
addSeen, afterFilter, beforeFilter, currentContext, doFilter, doFilter, doFilter, enter, exit, filter, filter, hasntSeen, pop, previousContext, pushprotected static final org.slf4j.Logger log
protected Map model2target
protected abstract Map c2c()
IObject classes ModelBased classes.public ModelBased map(Filterable source)
public Collection map(Collection source)
public Filterable filter(String fieldId, Filterable source)
filter in interface Filterfilter in class ContextFilterpublic Collection filter(String fieldId, Collection source)
ContextFilterfilter in interface Filterfilter in class ContextFilterpublic Map filter(String fieldId, Map source)
ContextFilterfilter in interface Filterfilter in class ContextFilterpublic Object findKeyTarget(Object current)
public Object findCollectionTarget(Object current)
public Object findTarget(Object current)
current - public Collection findCollection(Collection source)
public int nullSafeInt(Integer i)
public long nullSafeLong(Long l)
public double nullSafeDouble(Double d)
public float nullSafeFloat(Float f)
Version: 5.3.4-ice35-b69
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.