T - the model typepublic class ToStringValueProvider<T> extends Object implements ValueProvider<T,String>
ValueProvider implementation that simply call Object.toString() on the target model.| Constructor and Description |
|---|
ToStringValueProvider(String path) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
Returns the path that this ValueProvider makes available, from the object,
to the value.
|
String |
getValue(T object)
Returns the property value of the given object.
|
void |
setValue(T object,
String value)
Sets the value of the given object
|
public ToStringValueProvider(String path)
public String getValue(T object)
ValueProvidergetValue in interface ValueProvider<T,String>object - the target objectpublic void setValue(T object, String value)
ValueProvidersetValue in interface ValueProvider<T,String>public String getPath()
ValueProvidergetPath in interface ValueProvider<T,String>Copyright © 2012. All Rights Reserved.