Class ValueRetrieverSource

java.lang.Object
net.officefloor.web.value.retrieve.ValueRetrieverSource

public class ValueRetrieverSource extends Object
Sources the ValueRetriever.
Author:
Daniel Sagenschneider
  • Constructor Details

    • ValueRetrieverSource

      public ValueRetrieverSource(boolean isCaseInsensitive)
      Instantiate.
      Parameters:
      isCaseInsensitive - Indicates if property name comparison is case insensitive.
  • Method Details

    • retrieveValue

      public static Object retrieveValue(Object object, Method method) throws 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:
      Exception - If fails to retrieve the value.
    • sourceValueRetriever

      public <T> ValueRetriever<T> sourceValueRetriever(Class<T> type)
      Sources the ValueRetriever for the type.
      Type Parameters:
      T - Type.
      Parameters:
      type - Type.
      Returns:
      ValueRetriever for the type.