public class BeanProperty
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IBeanDelegateProvider |
delegateprovider
Accessor delegate provider.
|
protected java.lang.reflect.Field |
field
The field.
|
protected java.lang.reflect.Type |
gentype
The generic type.
|
protected java.lang.reflect.Method |
getter
The getter.
|
protected java.lang.String |
name
The name.
|
protected boolean |
readable
Readable flag
|
protected java.lang.reflect.Method |
setter
The setter.
|
protected java.lang.Class<?> |
settertype
The setter type.
|
protected java.lang.Class<?> |
type
The type.
|
protected boolean |
writable
Writable flag
|
Constructor and Description |
---|
BeanProperty()
Create a new bean property.
|
BeanProperty(java.lang.String name,
java.lang.Class<?> type,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.Class<?> settertype,
IBeanDelegateProvider delegateprovider,
boolean readable,
boolean writable,
java.lang.reflect.Type gentype)
Create a new bean property.
|
BeanProperty(java.lang.String name,
java.lang.reflect.Field field,
IBeanDelegateProvider delegateprovider)
Create a new bean property.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Field |
getField()
Get the field.
|
java.lang.reflect.Type |
getGenericType()
Get the gentype.
|
java.lang.String |
getName()
Get the name.
|
java.lang.Object |
getPropertyValue(java.lang.Object object)
Retrieves the bean property value for the given object.
|
java.lang.Class<?> |
getSetterType()
Get the setter_type.
|
java.lang.Class<?> |
getType()
Get the type.
|
boolean |
isReadable()
Tests if the property is readable.
|
boolean |
isWritable()
Tests if the property is writable.
|
void |
setField(java.lang.reflect.Field field)
Set the field.
|
void |
setGenericType(java.lang.reflect.Type gentype)
Set the gentype.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setPropertyValue(java.lang.Object object,
java.lang.Object value)
Sets the bean property value for the given object.
|
void |
setSetterType(java.lang.Class<?> settertype)
Set the setter type.
|
void |
setType(java.lang.Class<?> type)
Set the type.
|
protected java.lang.String name
protected java.lang.Class<?> type
protected java.lang.reflect.Method getter
protected java.lang.reflect.Method setter
protected boolean readable
protected boolean writable
protected java.lang.Class<?> settertype
protected java.lang.reflect.Field field
protected IBeanDelegateProvider delegateprovider
protected java.lang.reflect.Type gentype
public BeanProperty()
public BeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, IBeanDelegateProvider delegateprovider, boolean readable, boolean writable, java.lang.reflect.Type gentype)
public BeanProperty(java.lang.String name, java.lang.reflect.Field field, IBeanDelegateProvider delegateprovider)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.Class<?> getType()
public void setType(java.lang.Class<?> type)
type
- The type to set.public boolean isWritable()
public boolean isReadable()
public java.lang.Class<?> getSetterType()
public void setSetterType(java.lang.Class<?> settertype)
settertype
- The setter type to set.public java.lang.reflect.Field getField()
public void setField(java.lang.reflect.Field field)
field
- The field to set.public java.lang.reflect.Type getGenericType()
public void setGenericType(java.lang.reflect.Type gentype)
gentype
- The gentype to setpublic java.lang.Object getPropertyValue(java.lang.Object object)
object
- The object containing the bean property.property
- The name of the property.public void setPropertyValue(java.lang.Object object, java.lang.Object value)
object
- The object containing the bean property.property
- The name of the property.value
- The new value.