Class ValueRetrieverSource


  • public class ValueRetrieverSource
    extends java.lang.Object
    Sources the ValueRetriever.
    Author:
    Daniel Sagenschneider
    • Constructor Detail

      • ValueRetrieverSource

        public ValueRetrieverSource​(boolean isCaseInsensitive)
        Instantiate.
        Parameters:
        isCaseInsensitive - Indicates if property name comparison is case insensitive.
    • 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 the ValueRetriever for the type.
        Type Parameters:
        T - Type.
        Parameters:
        type - Type.
        Returns:
        ValueRetriever for the type.