|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.internal.services.ClassPropertyAdapterImpl
public class ClassPropertyAdapterImpl
Constructor Summary | |
---|---|
ClassPropertyAdapterImpl(Class beanType,
List<PropertyDescriptor> descriptors)
|
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassPropertyAdapterImpl(Class beanType, List<PropertyDescriptor> descriptors)
Method Detail |
---|
public Class getBeanType()
ClassPropertyAdapter
getBeanType
in interface ClassPropertyAdapter
public String toString()
toString
in class Object
public List<String> getPropertyNames()
ClassPropertyAdapter
getPropertyNames
in interface ClassPropertyAdapter
public PropertyAdapter getPropertyAdapter(String name)
ClassPropertyAdapter
getPropertyAdapter
in interface ClassPropertyAdapter
name
- of the property (case is ignored)public Object get(Object instance, String propertyName)
ClassPropertyAdapter
get
in interface ClassPropertyAdapter
instance
- the object to read a value frompropertyName
- the name of the property to read (case is ignored)public void set(Object instance, String propertyName, Object value)
ClassPropertyAdapter
set
in interface ClassPropertyAdapter
instance
- the object to updatepropertyName
- the name of the property to update (case is ignored)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |