|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyAccess
A wrapper around the JavaBean Introspector that allows more manageable access to JavaBean properties of objects.
Only provides access to simple properties. Indexed properties are ignored.
| Method Summary | |
|---|---|
void |
clearCache()
Discards all stored property access information, discarding all created class adapters. |
Object |
get(Object instance,
String propertyName)
Reads the value of a property. |
ClassPropertyAdapter |
getAdapter(Class forClass)
Returns the adapter used to access properties within the indicated class. |
ClassPropertyAdapter |
getAdapter(Object instance)
Returns the adapter for a particular object instance. |
void |
set(Object instance,
String propertyName,
Object value)
Updates the value of a property. |
| Method Detail |
|---|
Object get(Object instance,
String propertyName)
UnsupportedOperationException - if the property is write only
IllegalArgumentException - if property does not exist
void set(Object instance,
String propertyName,
Object value)
UnsupportedOperationException - if the property is read only
IllegalArgumentException - if property does not existClassPropertyAdapter getAdapter(Object instance)
getAdapter(Class).
ClassPropertyAdapter getAdapter(Class forClass)
void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||