
T - the property typepublic class IdentityValueProvider<T> extends Object implements ValueProvider<T,T>
ValueProvider that simply returns the model as the
property value. Useful when wanting to work directly with the model, rather
than a property.| Constructor and Description |
|---|
IdentityValueProvider()
Creates a new value provider with an empty string for the path.
|
IdentityValueProvider(String path)
Creates a new value provider.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
Returns the path that this ValueProvider makes available, from the object,
to the value.
|
T |
getValue(T object)
Returns the property value of the given object.
|
void |
setValue(T object,
T value)
Sets the value of the given object
|
public IdentityValueProvider()
public IdentityValueProvider(String path)
path - the pathpublic void setValue(T object, T value)
ValueProvidersetValue in interface ValueProvider<T,T>public T getValue(T object)
ValueProvidergetValue in interface ValueProvider<T,T>object - the target objectpublic String getPath()
ValueProvidergetPath in interface ValueProvider<T,T>Copyright © 2018. All rights reserved.