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 Details

  • Method Details

    • doExactMatch

      public int doExactMatch(String reqInfo, String entityInfo)
      Do Exact match on Request Info details and Entity Info details string.
      Parameters:
      reqInfo - the req info
      entityInfo - 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 info
      entityInfo - 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 info
      entityInfo - 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 info
      entityInfo - 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 list
      entityInfoName - the entity info name
      language - the language
      Returns:
      the int