Class DemoMatcherUtil
- java.lang.Object
-
- io.mosip.authentication.core.util.DemoMatcherUtil
-
@Component public class DemoMatcherUtil extends Object
Util class for Demo Matcher- Author:
- Dinesh Karuppiah, Nagarjuna
-
-
Field Summary
Fields Modifier and Type Field Description static intEXACT_MATCH_VALUE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoExactMatch(String reqInfo, String entityInfo)Do Exact match on Request Info details and Entity Info details string.intdoExactMatch(Date reqInfo, Date entityInfo)Exact match for Date - checks refInfo date and entity info date are same.intdoLessThanEqualToMatch(int reqInfo, int entityInfo)Do Less than or equal to match based on input integer value.intdoPartialMatch(String reqInfo, String entityInfo)Do Partial Match for Reference info details and Entity Info details string.intdoPhoneticsMatch(String refInfoName, String entityInfoName, String language)Doing phonetic match with input request and stored-request with language-name,NOT language-code.
-
-
-
Field Detail
-
EXACT_MATCH_VALUE
public static final int EXACT_MATCH_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExactMatch
public int doExactMatch(String reqInfo, String entityInfo)
Do Exact match on Request Info details and Entity Info details string.- Parameters:
reqInfo- the req infoentityInfo- the entity info- Returns:
- 0 or 100 based on match value
-
doPartialMatch
public int doPartialMatch(String reqInfo, String entityInfo)
Do Partial Match for Reference info details and Entity Info details string.- Parameters:
reqInfo- the req infoentityInfo- the entity info- Returns:
- the int
-
doLessThanEqualToMatch
public int doLessThanEqualToMatch(int reqInfo, int entityInfo)Do Less than or equal to match based on input integer value.- Parameters:
reqInfo- the req infoentityInfo- the entity info- Returns:
- the int
-
doExactMatch
public int doExactMatch(Date reqInfo, Date entityInfo)
Exact match for Date - checks refInfo date and entity info date are same.- Parameters:
reqInfo- the req infoentityInfo- the entity info- Returns:
- 100 when the refInfo and entityInfo dates are matched
-
doPhoneticsMatch
public int doPhoneticsMatch(String refInfoName, String entityInfoName, String language)
Doing phonetic match with input request and stored-request with language-name,NOT language-code. If give language code, get java.lang.IllegalArgumentException: No rules found for gen, rules, language-code.- Parameters:
refInfoName- the ref info listentityInfoName- the entity info namelanguage- the language- Returns:
- the int
-
-