|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassPropertyAdapter
Organizes all PropertyAdapter
s for a particular class.
Method Summary | |
---|---|
Object |
get(Object instance,
String propertyName)
Reads the value of a property. |
Class |
getBeanType()
Returns the type of bean this adapter provides properties for. |
PropertyAdapter |
getPropertyAdapter(String name)
Returns the property adapter with the given name, or null if no such adapter exists. |
List<String> |
getPropertyNames()
Returns the names of all properties, sorted into alphabetic order. |
void |
set(Object instance,
String propertyName,
Object value)
Updates the value of a property. |
Method Detail |
---|
List<String> getPropertyNames()
Class getBeanType()
PropertyAdapter getPropertyAdapter(String name)
name
- of the property (case is ignored)Object get(Object instance, String propertyName)
instance
- the object to read a value frompropertyName
- the name of the property to read (case is ignored)
UnsupportedOperationException
- if the property is write only
IllegalArgumentException
- if property does not existvoid set(Object instance, String propertyName, Object value)
instance
- the object to updatepropertyName
- the name of the property to update (case is ignored)
UnsupportedOperationException
- if the property is read only
IllegalArgumentException
- if property does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |