net.sf.seaf.util.bean
Class PropertyValueExtractor
java.lang.Object
net.sf.seaf.util.bean.PropertyValueExtractor
public class PropertyValueExtractor
- extends Object
Extracts the values of bean properties by property name.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyValueExtractor
public PropertyValueExtractor(Object bean)
- Creates a extractor for a given bean.
- Parameters:
bean - The bean on which property values are to be extracted
extractPropertyValue
public Object extractPropertyValue(String propertyName)
throws IllegalArgumentException
- Extracts the value of the given property.
- Parameters:
propertyName - The name of the property to extract
- Returns:
- Object The value of the property extracted
- Throws:
IllegalArgumentException - Thrown when the property value cannot be accessed
Copyright © 2008-2012 SEAF. All Rights Reserved.