|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.services.PropertyAdapterImpl
public class PropertyAdapterImpl
| Method Summary | ||
|---|---|---|
Object |
get(Object instance)
Reads the property value. |
|
|
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance. |
|
Class |
getBeanType()
Returns the type of bean to which this property belongs. |
|
ClassPropertyAdapter |
getClassAdapter()
Returns the ClassPropertyAdapter that provides access to other
properties defined by the same class. |
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getName()
PropertyAdapter
getName in interface PropertyAdapterpublic Method getReadMethod()
PropertyAdapter
getReadMethod in interface PropertyAdapterpublic Class getType()
PropertyAdapter
getType in interface PropertyAdapterpublic Method getWriteMethod()
PropertyAdapter
getWriteMethod in interface PropertyAdapterpublic boolean isRead()
PropertyAdapter
isRead in interface PropertyAdapterpublic boolean isUpdate()
PropertyAdapter
isUpdate in interface PropertyAdapterpublic Object get(Object instance)
PropertyAdapter
get in interface PropertyAdapterinstance - to read from
public void set(Object instance,
Object value)
PropertyAdapter
set in interface PropertyAdapterinstance - to updatevalue - new value for the propertypublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvider
getAnnotation in interface AnnotationProviderannotationClass - used to select the annotation to return«
public boolean isCastRequired()
PropertyAdapter
isCastRequired in interface PropertyAdapterpublic ClassPropertyAdapter getClassAdapter()
PropertyAdapterClassPropertyAdapter that provides access to other
properties defined by the same class.
getClassAdapter in interface PropertyAdapterpublic Class getBeanType()
PropertyAdapterClassPropertyAdapter.getBeanType().
getBeanType in interface PropertyAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||