Class PathFunctionFactory


  • public class PathFunctionFactory
    extends java.lang.Object
    Implements a factory that given a name of the function will return the Function implementation, or null if the value is not obtained. Leverages the function's name in order to determine which function to execute which is maintained internally here via a static map Created by mattg on 6/27/15.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Map<java.lang.String,​java.lang.Class> FUNCTIONS  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PathFunction newFunction​(java.lang.String name)
      Either provides a pass thru function when the function cannot be properly mapped or otherwise returns the function implementation based on the name using the internal FUNCTION map
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FUNCTIONS

        public static final java.util.Map<java.lang.String,​java.lang.Class> FUNCTIONS
    • Constructor Detail

      • PathFunctionFactory

        public PathFunctionFactory()
    • Method Detail

      • newFunction

        public static PathFunction newFunction​(java.lang.String name)
                                        throws InvalidPathException
        Either provides a pass thru function when the function cannot be properly mapped or otherwise returns the function implementation based on the name using the internal FUNCTION map
        Parameters:
        name - The name of the function
        Returns:
        The implementation of a function
        Throws:
        InvalidPathException
        See Also:
        FUNCTIONS, PathFunction