Class MatchFunctionParameters

java.lang.Object
com.aquima.interactions.matching.impl.model.MatchFunctionParameters
All Implemented Interfaces:
IMatchFunctionParameters

public class MatchFunctionParameters extends Object implements IMatchFunctionParameters
This class contains the parameters for a match function.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • MatchFunctionParameters

      public MatchFunctionParameters(IResourceManager resources, Map<String,Object> parameters)
      Constructs the match function parameters from a map containing the parameter values.
      Parameters:
      resources - The resource manager that may be used by match functions to locate external resources.
      parameters - Optional map parameter containing the parameter values.
  • Method Details

    • getParameter

      public Object getParameter(String key)
      Description copied from interface: IMatchFunctionParameters
      This method returns the parameter value for the specified key. When there is no parameter defined for the specified key, this method will return a null value.
      Specified by:
      getParameter in interface IMatchFunctionParameters
      Parameters:
      key - The key for which the parameter value is requested.
      Returns:
      The parameter value for the specified key.
    • getParameterNames

      public String[] getParameterNames()
      Description copied from interface: IMatchFunctionParameters
      This method returns an array containing all the parameter names for which a value is present.
      Specified by:
      getParameterNames in interface IMatchFunctionParameters
      Returns:
      an array containing all the parameter names for which a value is present.
    • getResourceManager

      public IResourceManager getResourceManager()
      Description copied from interface: IMatchFunctionParameters
      This method returns the resource manager that may be used to locate external resources for the match function.
      Specified by:
      getResourceManager in interface IMatchFunctionParameters
      Returns:
      the resource manager that may be used to locate external resources for the match function.
    • hasParameter

      public boolean hasParameter(String key)
      Description copied from interface: IMatchFunctionParameters
      This method returns a boolean indicating if this parameters object has a value for the specified key.
      Specified by:
      hasParameter in interface IMatchFunctionParameters
      Parameters:
      key - The key for which should be checked if a value is available.
      Returns:
      boolean indicating if this parameters object has a value for the specified key.