net.sf.seaf.util.bean
Class PropertyValueExtractor

java.lang.Object
  extended by net.sf.seaf.util.bean.PropertyValueExtractor

public class PropertyValueExtractor
extends Object

Extracts the values of bean properties by property name.


Constructor Summary
PropertyValueExtractor(Object bean)
          Creates a extractor for a given bean.
 
Method Summary
 Object extractPropertyValue(String propertyName)
          Extracts the value of the given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueExtractor

public PropertyValueExtractor(Object bean)
Creates a extractor for a given bean.

Parameters:
bean - The bean on which property values are to be extracted
Method Detail

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.