public class BeanProperty extends Object
| Constructor and Description |
|---|
BeanProperty()
Create a new bean property.
|
BeanProperty(String name,
Class<?> type,
Method getter,
Method setter,
Class<?> settertype,
IBeanDelegateProvider delegateprovider,
boolean readable,
boolean writable)
Create a new bean property.
|
BeanProperty(String name,
Field field,
IBeanDelegateProvider delegateprovider)
Create a new bean property.
|
| Modifier and Type | Method and Description |
|---|---|
Field |
getField()
Get the field.
|
String |
getName()
Get the name.
|
Object |
getPropertyValue(Object object)
Retrieves the bean property value for the given object.
|
Class<?> |
getSetterType()
Get the setter_type.
|
Class<?> |
getType()
Get the type.
|
boolean |
isReadable()
Tests if the property is readable.
|
boolean |
isWritable()
Tests if the property is writable.
|
void |
setField(Field field)
Set the field.
|
void |
setName(String name)
Set the name.
|
void |
setPropertyValue(Object object,
Object value)
Sets the bean property value for the given object.
|
void |
setSetterType(Class<?> settertype)
Set the setter type.
|
void |
setType(Class<?> type)
Set the type.
|
public BeanProperty()
public BeanProperty(String name, Class<?> type, Method getter, Method setter, Class<?> settertype, IBeanDelegateProvider delegateprovider, boolean readable, boolean writable)
public BeanProperty(String name, Field field, IBeanDelegateProvider delegateprovider)
public String getName()
public void setName(String name)
name - The name to set.public Class<?> getType()
public void setType(Class<?> type)
type - The type to set.public boolean isWritable()
public boolean isReadable()
public Class<?> getSetterType()
public void setSetterType(Class<?> settertype)
settertype - The setter type to set.public Field getField()
public void setField(Field field)
field - The field to set.public Object getPropertyValue(Object object)
object - The object containing the bean property.property - The name of the property.Copyright © 2015. All Rights Reserved.