public class MapPropertySetter extends Object implements PropertySetter
PropertySetter on Map type entity specifically| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
keyType |
protected PropertyGetter.NullValuePolicy |
nullValuePolicy |
protected Osgl.Function<Class<?>,Object> |
objectFactory |
protected Osgl.Func2<String,Class<?>,?> |
stringValueResolver |
protected Class<?> |
valType |
| Constructor and Description |
|---|
MapPropertySetter(Class<?> keyType,
Class<?> valType) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
keyFrom(Object index) |
void |
set(Object entity,
Object value,
Object index)
After calling this method, the value will be set on a property of an entity object
|
void |
setNullValuePolicy(PropertyGetter.NullValuePolicy nvp) |
void |
setObjectFactory(Osgl.Function<Class<?>,Object> factory) |
void |
setStringValueResolver(Osgl.Func2<String,Class<?>,?> stringValueResolver) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetObjectFactory, setStringValueResolverprotected final Class<?> keyType
protected final Class<?> valType
protected Osgl.Function<Class<?>,Object> objectFactory
protected Osgl.Func2<String,Class<?>,?> stringValueResolver
protected PropertyGetter.NullValuePolicy nullValuePolicy
public void set(Object entity, Object value, Object index)
PropertySetterset in interface PropertySetterentity - the entity objectvalue - the valueindex - optional index, used when the property is a List or Mappublic void setObjectFactory(Osgl.Function<Class<?>,Object> factory)
setObjectFactory in interface PropertyHandlerpublic void setStringValueResolver(Osgl.Func2<String,Class<?>,?> stringValueResolver)
setStringValueResolver in interface PropertyHandlerpublic void setNullValuePolicy(PropertyGetter.NullValuePolicy nvp)
Copyright © 2017. All Rights Reserved.