| org.apache.tapestry.ioc.services.PropertyAdapter
All known Subclasses: org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl,
Method Summary | |
Object | get(Object instance) Reads the property value. | T | getAnnotation(Class<T> annotationClass) Returns an annotation on the property. | String | getName() Returns the name of the property. | public 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. | public Method | getWriteMethod() Returns the method used to update the property, or null if the property is not writeable. | 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. |
getAnnotation | T getAnnotation(Class<T> annotationClass)(Code) | | Returns an annotation on the property. The read method (if present) is checked first,
followed by the write method.
< Parameters: T - > Parameters: annotationClass - the annotation to retrieve the annotation on the read or write method, or null if not present on either method |
getName | String getName()(Code) | | Returns the name of the property.
|
getReadMethod | public Method getReadMethod()(Code) | | Returns the method used to read the property, or null if the property is not readable.
|
getType | Class getType()(Code) | | Returns the type of the property.
|
getWriteMethod | public Method getWriteMethod()(Code) | | Returns the method used to update the property, or null if the property is not writeable.
|
isRead | boolean isRead()(Code) | | Returns true if the property is readable (i.e., has a getter method).
|
isUpdate | boolean isUpdate()(Code) | | Returns true if the property is writeable (i.e., has a setter method).
|
set | void set(Object instance, Object value)(Code) | | Updates the property value. The provided value must not be null if the property type is
primitive, and must otherwise be of the proper type.
Parameters: instance - to update Parameters: value - new value for the property throws: UnsupportedOperationException - if the property is read only |
|
|