public interface PropertyAccessor
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue(java.lang.Object object)
Gets the property value as a boolean.
|
byte |
getByteValue(java.lang.Object object)
Gets the property value as a byte.
|
char |
getCharValue(java.lang.Object object)
Gets the property value as a char.
|
double |
getDoubleValue(java.lang.Object object)
Gets the property value as a double.
|
float |
getFloatValue(java.lang.Object object)
Gets the property value as a float.
|
int |
getIntValue(java.lang.Object object)
Gets the property value as an int.
|
long |
getLongValue(java.lang.Object object)
Gets the property value as a long.
|
java.lang.Object |
getObject(java.lang.Object object)
Gets the property value as an Object.
|
short |
getShortValue(java.lang.Object object)
Gets the property value as a short.
|
java.lang.String |
name()
Returns the name of the property being accessed.
|
java.lang.Class<?> |
propertyClass()
Returns the runtime class of the property.
|
java.lang.reflect.Type |
propertyType()
Returns the generic type of the property.
|
void |
setBooleanValue(java.lang.Object object,
boolean value)
Sets the property value from a boolean.
|
void |
setByteValue(java.lang.Object object,
byte value)
Sets the property value from a byte.
|
void |
setCharValue(java.lang.Object object,
char value)
Sets the property value from a char.
|
void |
setDoubleValue(java.lang.Object object,
double value)
Sets the property value from a double.
|
void |
setFloatValue(java.lang.Object object,
float value)
Sets the property value from a float.
|
void |
setIntValue(java.lang.Object object,
int value)
Sets the property value from an int.
|
void |
setLongValue(java.lang.Object object,
long value)
Sets the property value from a long.
|
void |
setObject(java.lang.Object object,
java.lang.Object value)
Sets the property value from an Object.
|
void |
setShortValue(java.lang.Object object,
short value)
Sets the property value from a short.
|
boolean |
supportGet()
Checks if the property supports getting values.
|
boolean |
supportSet()
Checks if the property supports setting values.
|
java.lang.String name()
java.lang.Class<?> propertyClass()
java.lang.reflect.Type propertyType()
boolean supportGet()
boolean supportSet()
java.lang.Object getObject(java.lang.Object object)
object - the object to get the property frombyte getByteValue(java.lang.Object object)
object - the object to get the property fromchar getCharValue(java.lang.Object object)
object - the object to get the property fromshort getShortValue(java.lang.Object object)
object - the object to get the property fromint getIntValue(java.lang.Object object)
object - the object to get the property fromlong getLongValue(java.lang.Object object)
object - the object to get the property fromfloat getFloatValue(java.lang.Object object)
object - the object to get the property fromdouble getDoubleValue(java.lang.Object object)
object - the object to get the property fromboolean getBooleanValue(java.lang.Object object)
object - the object to get the property fromvoid setObject(java.lang.Object object,
java.lang.Object value)
object - the object to set the property onvalue - the value to setvoid setByteValue(java.lang.Object object,
byte value)
object - the object to set the property onvalue - the byte value to setvoid setCharValue(java.lang.Object object,
char value)
object - the object to set the property onvalue - the char value to setvoid setShortValue(java.lang.Object object,
short value)
object - the object to set the property onvalue - the short value to setvoid setIntValue(java.lang.Object object,
int value)
object - the object to set the property onvalue - the int value to setvoid setLongValue(java.lang.Object object,
long value)
object - the object to set the property onvalue - the long value to setvoid setFloatValue(java.lang.Object object,
float value)
object - the object to set the property onvalue - the float value to setvoid setDoubleValue(java.lang.Object object,
double value)
object - the object to set the property onvalue - the double value to setvoid setBooleanValue(java.lang.Object object,
boolean value)
object - the object to set the property onvalue - the boolean value to set