Class StringRangeMatch
java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchFunction
com.aquima.interactions.matching.impl.functions.range.StringRangeMatch
- All Implemented Interfaces:
IMatchFunction
The StringRange match function checks if a requested string is equal to the offered string, or if the requested
string lies within the offered range. The requested string value consists always of a single string, whereas the
offered value may be either a single value or a range.
- Since:
- 6.2
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StringRangeMatch
(String name, char wildcard, String rangeSeparator) -
Method Summary
Modifier and TypeMethodDescriptiondemandValueFor
(IValue obj) This method is invoked to convert a value object to a matchable demand value.DataType[]
This method returns an array of data types that are supported by this match function.int
match
(IMatchValue vraag, IMatchValue aanbod) This method should compare the demand value against the supply value and determine the match score.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
-
Constructor Details
-
StringRangeMatch
-
-
Method Details
-
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
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
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
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.
-