public class PropertyAdaptor extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPropertyName() |
java.lang.Class |
getPropertyType() |
java.lang.String |
getReadMethodName()
Returns the name of the method used to read the property, or null if the property is not
readable.
|
java.lang.String |
getWriteMethodName()
Returns the name of the method used to write the property, or null if the property is not
writable.
|
boolean |
isReadable()
Returns true if there's a read method for the property.
|
boolean |
isWritable()
Returns true if there's a write method for the property.
|
java.lang.Object |
read(java.lang.Object target)
Reads the property of the target object.
|
void |
smartWrite(java.lang.Object target,
java.lang.String value) |
void |
write(java.lang.Object target,
java.lang.Object value)
Updates the property of the target object.
|
public java.lang.String getReadMethodName()
public java.lang.String getWriteMethodName()
public java.lang.String getPropertyName()
public java.lang.Class getPropertyType()
public void write(java.lang.Object target, java.lang.Object value)
target
- the object to updatevalue
- the value to be stored into the target object propertypublic void smartWrite(java.lang.Object target, java.lang.String value)
public boolean isWritable()
public java.lang.Object read(java.lang.Object target)
target
- the object to read a property frompublic boolean isReadable()