Class DemoMatcherUtil
java.lang.Object
io.mosip.authentication.core.util.DemoMatcherUtil
Util class for Demo Matcher
- Author:
- Dinesh Karuppiah, Nagarjuna
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintdoExactMatch(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 Details
-
EXACT_MATCH_VALUE
public static final int EXACT_MATCH_VALUE- See Also:
-
-
Method Details
-
doExactMatch
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
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
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
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
-