public class BeanValueProvider extends Object implements IValueProvider
IValueProvider.
The provider returns the value of the given bean property or - if NULL - the defined NULL value
which is NULL by default.
The provider will return the bean itself when the bean property is set to NULL.| Constructor and Description |
|---|
BeanValueProvider(String beanProperty)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBeanProperty()
Returns the beanProperty.
|
Object |
getNullValue()
Returns the nullValue.
|
Object |
getValue(Object o)
Return the value for the given object.
|
static BeanValueProvider[] |
getValueProviders(String... beanProperties)
Helper method to convert list of properties to value providers.
|
void |
setBeanProperty(String beanProperty)
Sets the beanProperty.
|
void |
setNullValue(Object nullValue)
Sets the nullValue.
|
public BeanValueProvider(String beanProperty)
public Object getValue(Object o)
getValue in interface IValueProvidero - the objectpublic String getBeanProperty()
public void setBeanProperty(String beanProperty)
beanProperty - the beanProperty to setpublic Object getNullValue()
public void setNullValue(Object nullValue)
nullValue - the nullValue to setpublic static BeanValueProvider[] getValueProviders(String... beanProperties)
beanProperties - the bean propertiesCopyright © 2014. All rights reserved.