Class ExactStringMatch
- java.lang.Object
-
- com.aquima.interactions.matching.impl.functions.MatchFunction
-
- com.aquima.interactions.matching.impl.functions.exact.ExactStringMatch
-
- All Implemented Interfaces:
IMatchFunction
public class ExactStringMatch extends MatchFunction
Exact match implementation for values that can be converted to a string.- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExactStringMatch(String name, String matchType, boolean caseSensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatchValue
demandValueFor(IValue obj)
This method is invoked to convert a value object to a matchable demand value.DataType[]
getSupportedTypes()
This method returns an array of data types that are supported by this match function.boolean
isCaseSensitive()
this method returns a boolean indicating if the values will be match considering the casing.int
match(IMatchValue vraag, IMatchValue aanbod)
This method should compare the demand value against the supply value and determine the match score.IMatchValue
supplyValueFor(IValue obj)
This method is invoked to convert a value object to a matchable supply value.-
Methods inherited from class com.aquima.interactions.matching.impl.functions.MatchFunction
getMatchType, getName, match, onLoadComplete, onStartup
-
-
-
-
Method Detail
-
isCaseSensitive
public boolean isCaseSensitive()
this method returns a boolean indicating if the values will be match considering the casing.- Returns:
- a boolean indicating if the values will be match considering the casing.
-
getSupportedTypes
public DataType[] getSupportedTypes()
Description copied from interface:IMatchFunction
This method returns an array of data types that are supported by this match function.- Returns:
- an array of data types that are supported by this match function.
-
demandValueFor
public IMatchValue demandValueFor(IValue obj)
Description copied from interface:IMatchFunction
This method is invoked to convert a value object to a matchable demand value.- Parameters:
obj
- The value object that should be converted.- Returns:
- The demand value for the object value.
-
supplyValueFor
public IMatchValue supplyValueFor(IValue obj)
Description copied from interface:IMatchFunction
This method is invoked to convert a value object to a matchable supply value.- Parameters:
obj
- The value object that should be converted.- Returns:
- The supply value for the object value.
-
match
public int match(IMatchValue vraag, IMatchValue aanbod)
Description copied from interface:IMatchFunction
This method should compare the demand value against the supply value and determine the match score.- Parameters:
vraag
- The value that is demanded.aanbod
- The value that is supplied.- Returns:
- The match score for the supply and demand combination.
-
-