|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.apploader.propertysheets.PropertyAdapter
Simple implementation of the PropertInterfacer interface that uses java Method objects to interact with the property.
Field Summary | |
protected java.lang.reflect.Method |
getter
|
protected java.lang.String |
name
|
protected java.lang.reflect.Method |
setter
|
Constructor Summary | |
PropertyAdapter()
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests to see that the other property has the same name getter and setter. |
java.lang.String |
getName()
Get the display name of the property. |
java.lang.Object |
getValue(java.lang.Object bean)
Gets the current value of the property on the given bean. |
int |
hashCode()
Hashes based on the name, getter and setter. |
boolean |
isReadable()
Checks to see if the property may be readable. |
boolean |
isReadableOn(java.lang.Object bean)
Checks to see if the property is readable on the given bean. |
boolean |
isWritable()
Checks to see if the property may be settable. |
boolean |
isWritableOn(java.lang.Object bean)
Checks to see if the property is writable on the given bean. |
void |
setValue(java.lang.Object bean,
java.lang.Object value)
Sets a specific property of the passed bean to the given value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.umd.cfar.lamp.apploader.propertysheets.PropertyInterfacer |
getPropertyClass |
Field Detail |
protected java.lang.String name
protected java.lang.reflect.Method getter
protected java.lang.reflect.Method setter
Constructor Detail |
public PropertyAdapter()
Method Detail |
public int hashCode()
public boolean equals(java.lang.Object o)
o
- the other property adapter to compare with
true
iff both this and the parameter
are property adapters that refer the the same name, getter
and setterpublic void setValue(java.lang.Object bean, java.lang.Object value)
PropertyInterfacer
setValue
in interface PropertyInterfacer
bean
- The java object to set the property specified by this
PropertyInterfacer instance of.value
- The new value for the propertyPropertyInterfacer.setValue(java.lang.Object, java.lang.Object)
public java.lang.Object getValue(java.lang.Object bean)
PropertyInterfacer
getValue
in interface PropertyInterfacer
bean
-
PropertyInterfacer.getValue(java.lang.Object)
public boolean isWritableOn(java.lang.Object bean)
PropertyInterfacer
isWritableOn
in interface PropertyInterfacer
bean
- The bean to check
true
if the bean's property may be writtenPropertyInterfacer.isWritableOn(java.lang.Object)
public boolean isReadableOn(java.lang.Object bean)
PropertyInterfacer
isReadableOn
in interface PropertyInterfacer
bean
- The bean to check
true
if the bean's property may be readPropertyInterfacer.isReadableOn(java.lang.Object)
public boolean isReadable()
PropertyInterfacer
isReadable
in interface PropertyInterfacer
true
if there exists some instances
that allow this property to be read.PropertyInterfacer.isReadable()
public boolean isWritable()
PropertyInterfacer
isWritable
in interface PropertyInterfacer
true
if there exists some instances
that allow this property to be set.PropertyInterfacer.isWritable()
public java.lang.String getName()
PropertyInterfacer
getName
in interface PropertyInterfacer
PropertyInterfacer.getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |