public final class PropertyWrapper
extends java.lang.Object
java.beans.PropertyDescriptor
or com.googlecode.openbeans.PropertyDescriptor
.
Used to eliminate compile-time dependencies with package java.beans.*
which is not
available to Android developers.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private static java.lang.reflect.Method |
NO_METHOD |
private static java.lang.String |
NO_NAME |
private java.lang.Object |
propertyDescriptor |
private java.lang.reflect.Method |
readMethod |
private java.lang.reflect.Method |
writeMethod |
Constructor and Description |
---|
PropertyWrapper(java.lang.Object propertyDescriptor) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of a property of a Java bean.
|
private static java.lang.reflect.Method |
getNullMethod() |
java.lang.reflect.Method |
getReadMethod()
Returns the method that should be used to read the value of a property of a Java bean.
|
java.lang.reflect.Method |
getWriteMethod()
Returns the method that should be used to write a value to a property of a Java bean.
|
private static java.lang.Object |
invoke(java.lang.Object propertyDescriptor,
java.lang.reflect.Method method) |
private static final java.lang.reflect.Method NO_METHOD
private static final java.lang.String NO_NAME
private final java.lang.Object propertyDescriptor
private java.lang.reflect.Method writeMethod
private java.lang.reflect.Method readMethod
private java.lang.String name
public final java.lang.reflect.Method getWriteMethod()
null
.public final java.lang.reflect.Method getReadMethod()
null
.public final java.lang.String getName()
null
.private static java.lang.Object invoke(java.lang.Object propertyDescriptor, java.lang.reflect.Method method)
private static java.lang.reflect.Method getNullMethod()