Class ExactStringMatchFactory
- java.lang.Object
-
- com.aquima.interactions.matching.impl.functions.exact.ExactStringMatchFactory
-
- All Implemented Interfaces:
IMatchFunctionFactory
public class ExactStringMatchFactory extends Object implements IMatchFunctionFactory
Match function factory implementation for the exact match.- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_CASE_SENSITIVE
This member defines the parameter name that can be used to toggle the case sensitive behavior of the exact string match.
-
Constructor Summary
Constructors Constructor Description ExactStringMatchFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatchFunction
getMatchFunction(String name, IMatchFunctionParameters parameters)
This method constructs a match function for a specific match type definition with the specified name and parameters.String
getTypeName()
This method returns the type name of the match functions this factory can provide for.
-
-
-
Field Detail
-
PARAM_CASE_SENSITIVE
public static final String PARAM_CASE_SENSITIVE
This member defines the parameter name that can be used to toggle the case sensitive behavior of the exact string match. When no value is supplied for this parameter, the default of 'true' will be used.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from interface:IMatchFunctionFactory
This method returns the type name of the match functions this factory can provide for.- Specified by:
getTypeName
in interfaceIMatchFunctionFactory
- Returns:
- the type name of the match functions this factory can provide for.
-
getMatchFunction
public IMatchFunction getMatchFunction(String name, IMatchFunctionParameters parameters)
Description copied from interface:IMatchFunctionFactory
This method constructs a match function for a specific match type definition with the specified name and parameters. After construction of this function the object is expected to be reentrant. When a match function could not be created the factory should throw an exception, when the match function could not be found a null pointer should be returned.- Specified by:
getMatchFunction
in interfaceIMatchFunctionFactory
- Parameters:
name
- The name of the user created match function.parameters
- The parameters which can be used to initialize a match function with specific settings.- Returns:
- A match function implementation object. If the match function was unknown null can be returned.
-
-