public class ListPropertyGetter extends Object implements PropertyGetter
PropertyGetter on a List type entityPropertyGetter.NullValuePolicy| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
itemType |
protected PropertyGetter.NullValuePolicy |
nullValuePolicy |
protected Osgl.Function<Class<?>,Object> |
objectFactory |
protected Osgl.Func2<String,Class<?>,?> |
stringValueResolver |
| Constructor and Description |
|---|
ListPropertyGetter(Class<?> itemType) |
ListPropertyGetter(Osgl.Function<Class<?>,Object> objectFactory,
Osgl.Func2<String,Class<?>,?> stringValueResolver,
Class<?> itemType) |
ListPropertyGetter(Osgl.Function<Class<?>,Object> objectFactory,
Osgl.Func2<String,Class<?>,?> stringValueResolver,
PropertyGetter.NullValuePolicy nullValuePolicy,
Class<?> itemType) |
ListPropertyGetter(PropertyGetter.NullValuePolicy nullValuePolicy,
Class<?> itemType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object entity,
Object index)
Get the property value from an entity
|
void |
setNullValuePolicy(PropertyGetter.NullValuePolicy nvp) |
void |
setObjectFactory(Osgl.Function<Class<?>,Object> factory) |
void |
setStringValueResolver(Osgl.Func2<String,Class<?>,?> stringValueResolver) |
PropertySetter |
setter()
Returns the corresponding setter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNullValuePolicysetObjectFactory, setStringValueResolverprotected final Class<?> itemType
protected Osgl.Function<Class<?>,Object> objectFactory
protected Osgl.Func2<String,Class<?>,?> stringValueResolver
protected PropertyGetter.NullValuePolicy nullValuePolicy
public ListPropertyGetter(Class<?> itemType)
public ListPropertyGetter(PropertyGetter.NullValuePolicy nullValuePolicy, Class<?> itemType)
public ListPropertyGetter(Osgl.Function<Class<?>,Object> objectFactory, Osgl.Func2<String,Class<?>,?> stringValueResolver, Class<?> itemType)
public ListPropertyGetter(Osgl.Function<Class<?>,Object> objectFactory, Osgl.Func2<String,Class<?>,?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy, Class<?> itemType)
public Object get(Object entity, Object index)
PropertyGetterget in interface PropertyGetterentity - the entity objectindex - optional index, used when the property is a List or Mappublic PropertySetter setter()
PropertyGettersetter in interface PropertyGetterpublic 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.