Class ValueRetrieverSource
- java.lang.Object
-
- net.officefloor.web.value.retrieve.ValueRetrieverSource
-
public class ValueRetrieverSource extends java.lang.Object
Sources 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.Object
retrieveValue(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 theValueRetriever
for the type.
-
-
-
Method Detail
-
retrieveValue
public static java.lang.Object retrieveValue(java.lang.Object object, java.lang.reflect.Method method) throws java.lang.Exception
Retrieves the value from the object.- Parameters:
object
-Object
containing the value.method
-Method
to 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 theValueRetriever
for the type.- Type Parameters:
T
- Type.- Parameters:
type
- Type.- Returns:
ValueRetriever
for thetype
.
-
-