Package org.dellroad.stuff.vaadin7
Interface PropertyExtractor<T>
-
- Type Parameters:
T- target object type for extraction
- All Known Subinterfaces:
SortingPropertyExtractor<T>
- All Known Implementing Classes:
AbstractQueryContainer,AbstractSimpleContainer,AbstractUnsizedContainer,EnumContainer,SelfKeyedContainer,SimpleContainer,SimpleKeyedContainer,StringValuePropertyDef,VaadinSessionContainer
public interface PropertyExtractor<T>Classes that can extractPropertyvalues from Java objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <V> VgetPropertyValue(T obj, PropertyDef<V> propertyDef)Read the value of the property defined bypropertyDeffrom the given object.
-
-
-
Method Detail
-
getPropertyValue
<V> V getPropertyValue(T obj, PropertyDef<V> propertyDef)
Read the value of the property defined bypropertyDeffrom the given object.- Type Parameters:
V- value type- Parameters:
obj- Java objectpropertyDef- definition of which property to read- Returns:
- property value
- Throws:
IllegalArgumentException- if this instance does not recognizepropertyDefNullPointerException- if either parameter is null
-
-