|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.townleyenterprises.common.PropertyProxy
This class provides a simple way to dynamically access property values similar to the way it is handled in the Jakarta Struts package.
Constructor Summary | |
PropertyProxy(java.lang.Class klass)
The constructor takes the class which will be accessed. |
Method Summary | |
java.lang.Object |
getPropertyValue(java.lang.String property,
java.lang.Object o)
This method will retrieve the named property value for the specified object. |
java.lang.Class |
getSubjectClass()
Retrieves the class of the subject of this proxy instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyProxy(java.lang.Class klass)
klass
- the java classMethod Detail |
public java.lang.Object getPropertyValue(java.lang.String property, java.lang.Object o)
property
- the case-insensitive name of the property
to retrieve from the objecto
- the object to access
java.lang.RuntimeException
- if the property is not valid
for the classpublic java.lang.Class getSubjectClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |