|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyAdapter
Provides access to a single property within a class. Acts as an AnnotationProvider; when searching for
annotations, the read method (if present) is checked first, followed by the write method.
ClassPropertyAdapter| Method Summary | |
|---|---|
Object |
get(Object instance)
Reads the property value. |
String |
getName()
Returns the name of the property. |
Method |
getReadMethod()
Returns the method used to read the property, or null if the property is not readable. |
Class |
getType()
Returns the type of the property. |
Method |
getWriteMethod()
Returns the method used to update the property, or null if the property is not writeable. |
boolean |
isCastRequired()
Returns true if the return type of the read method is not the same as the property type. |
boolean |
isRead()
Returns true if the property is readable (i.e., has a getter method). |
boolean |
isUpdate()
Returns true if the property is writeable (i.e., has a setter method). |
void |
set(Object instance,
Object value)
Updates the property value. |
| Methods inherited from interface org.apache.tapestry.ioc.AnnotationProvider |
|---|
getAnnotation |
| Method Detail |
|---|
String getName()
boolean isRead()
Method getReadMethod()
boolean isUpdate()
Method getWriteMethod()
Object get(Object instance)
instance - to read from
UnsupportedOperationException - if the property is write only
void set(Object instance,
Object value)
instance - to updatevalue - new value for the property
UnsupportedOperationException - if the property is read onlyClass getType()
boolean isCastRequired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||