|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.util.PropertyAdaptor
public class PropertyAdaptor
Used to manage dynamic access to a property of a specific class.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |