Class MatchFunctionParameters
java.lang.Object
com.aquima.interactions.matching.impl.model.MatchFunctionParameters
- All Implemented Interfaces:
IMatchFunctionParameters
This class contains the parameters for a match function.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ConstructorDescriptionMatchFunctionParameters
(IResourceManager resources, Map<String, Object> parameters) Constructs the match function parameters from a map containing the parameter values. -
Method Summary
Modifier and TypeMethodDescriptiongetParameter
(String key) This method returns the parameter value for the specified key.String[]
This method returns an array containing all the parameter names for which a value is present.This method returns the resource manager that may be used to locate external resources for the match function.boolean
hasParameter
(String key) This method returns a boolean indicating if this parameters object has a value for the specified key.
-
Constructor Details
-
MatchFunctionParameters
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
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 interfaceIMatchFunctionParameters
- Parameters:
key
- The key for which the parameter value is requested.- Returns:
- The parameter value for the specified key.
-
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 interfaceIMatchFunctionParameters
- Returns:
- an array containing all the parameter names for which a value is present.
-
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 interfaceIMatchFunctionParameters
- Returns:
- the resource manager that may be used to locate external resources for the match function.
-
hasParameter
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 interfaceIMatchFunctionParameters
- 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.
-