com.aragost.util
Class PropertyAccessor
java.lang.Object
|
+--com.aragost.util.PropertyAccessor
- All Implemented Interfaces:
- AttributeAccessor
- public class PropertyAccessor
- extends java.lang.Object
- implements AttributeAccessor
Method Summary |
protected java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String propertyName)
Return the value of the specified propertyName, in the specified bean. |
java.lang.Object |
read(java.lang.Object source)
Read an attribute from the specified Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyAccessor
public PropertyAccessor(java.lang.String propertyName)
- Creates new PropertyReader
PropertyAccessor
public PropertyAccessor(java.lang.String property1,
java.lang.String property2)
PropertyAccessor
public PropertyAccessor(java.util.Collection names)
read
public java.lang.Object read(java.lang.Object source)
- Read an attribute from the specified Object.
- Specified by:
read
in interface AttributeAccessor
getProperty
protected java.lang.Object getProperty(java.lang.Object bean,
java.lang.String propertyName)
- Return the value of the specified propertyName, in the specified bean.
In case the bean doesn't have the property return null.