Class ValueRetrieverSource
- java.lang.Object
-
- net.officefloor.web.value.retrieve.ValueRetrieverSource
-
public class ValueRetrieverSource extends java.lang.ObjectSources theValueRetriever.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ValueRetrieverSource(boolean isCaseInsensitive)Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectretrieveValue(java.lang.Object object, java.lang.reflect.Method method)Retrieves the value from the object.<T> ValueRetriever<T>sourceValueRetriever(java.lang.Class<T> type)Sources theValueRetrieverfor the type.
-
-
-
Method Detail
-
retrieveValue
public static java.lang.Object retrieveValue(java.lang.Object object, java.lang.reflect.Method method) throws java.lang.ExceptionRetrieves the value from the object.- Parameters:
object-Objectcontaining the value.method-Methodto retrieve the value.- Returns:
- Value retrieved. May be
null. - Throws:
java.lang.Exception- If fails to retrieve the value.
-
sourceValueRetriever
public <T> ValueRetriever<T> sourceValueRetriever(java.lang.Class<T> type)
Sources theValueRetrieverfor the type.- Type Parameters:
T- Type.- Parameters:
type- Type.- Returns:
ValueRetrieverfor thetype.
-
-