public class ListPropertySetter extends Object implements PropertySetter
Implement PropertySetter on List type entity specifically
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
itemType |
protected PropertyGetter.NullValuePolicy |
nullValuePolicy |
protected Lang.Function<Class<?>,Object> |
objectFactory |
protected Lang.Func2<String,Class<?>,?> |
stringValueResolver |
| Constructor and Description |
|---|
ListPropertySetter(Class<?> itemType) |
ListPropertySetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class<?> itemType) |
| Modifier and Type | Method and Description |
|---|---|
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(Lang.Function<Class<?>,Object> factory) |
void |
setStringValueResolver(Lang.Func2<String,Class<?>,?> stringValueResolver) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetObjectFactory, setStringValueResolverprotected final Class<?> itemType
protected Lang.Function<Class<?>,Object> objectFactory
protected Lang.Func2<String,Class<?>,?> stringValueResolver
protected PropertyGetter.NullValuePolicy nullValuePolicy
public ListPropertySetter(Class<?> itemType)
public ListPropertySetter(Lang.Function<Class<?>,Object> objectFactory, Lang.Func2<String,Class<?>,?> stringValueResolver, Class<?> itemType)
public void set(Object entity, Object value, Object index)
PropertySetterAfter calling this method, the value will be set on a property of an entity object
set in interface PropertySetterentity - the entity objectvalue - the valueindex - optional index, used when the property is a List or Mappublic void setObjectFactory(Lang.Function<Class<?>,Object> factory)
setObjectFactory in interface PropertyHandlerpublic void setStringValueResolver(Lang.Func2<String,Class<?>,?> stringValueResolver)
setStringValueResolver in interface PropertyHandlerpublic void setNullValuePolicy(PropertyGetter.NullValuePolicy nvp)
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.