|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PojoPropertyAccessor
A PojoPropertyAccessor gives access to
a specific property of a POJO.
PojoPropertyDescriptor| Method Summary | |
|---|---|
AccessibleObject |
getAccessibleObject()
This method gets the accessible object used to
access (read/write) this property. |
Class<?> |
getDeclaringClass()
This method gets the class reflecting the type that declared this accessor. |
PojoPropertyAccessorMode<? extends PojoPropertyAccessor> |
getMode()
This method gets the mode of this accessor. |
int |
getModifiers()
This method gets the modifiers of the
accessible object. |
Class<?> |
getPropertyClass()
This method gets the type as Class. |
GenericType<?> |
getPropertyType()
This method gets the GenericType of this property. |
Class<?> |
getReturnClass()
This method gets the Class of the object returned when this
accessor is invoked. |
GenericType<?> |
getReturnType()
This method gets the GenericType of the object returned when this
accessor is invoked. |
| Methods inherited from interface net.sf.mmm.util.pojo.descriptor.api.attribute.PojoAttributeName |
|---|
getName |
| Method Detail |
|---|
PojoPropertyAccessorMode<? extends PojoPropertyAccessor> getMode()
AccessibleObject getAccessibleObject()
accessible object used to
access (read/write) this property.
null if this
property is NOT readable.PropertyDescriptor,
Method,
Constructor,
Fieldint getModifiers()
modifiers of the
accessible object.
Modifier,
Field.getModifiers(),
Method.getModifiers()GenericType<?> getReturnType()
GenericType of the object returned when this
accessor is invoked.
Method.getGenericReturnType(),
Field.getGenericType()Class<?> getReturnClass()
Class of the object returned when this
accessor is invoked.getReturnType().
getUpperBound()
Method.getReturnType(),
Field.getType()GenericType<?> getPropertyType()
GenericType of this property.getter this will be the
return-type while a
setter typically has
void as return-type and this method
will return the type of its argument. For mapped or indexed getters/setters
this method will return the item type.
GenericType reflecting the property.getPropertyClass(),
PropertyDescriptorClass<?> getPropertyClass()
type as Class. It
is a convenience method for getPropertyType().
getUpperBound() if the
mode is for reading and getPropertyType().
getLowerBound() otherwise.
Class reflecting the property.Class<?> getDeclaringClass()
field or method of
this accessor is inherited from and is NOT overridden.Object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||