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