Interface PhoneValidatorStrategy

All Known Implementing Classes:
DefaultPhoneValidatorStrategyImpl

public interface PhoneValidatorStrategy
This class provides functionality of validating phoneNumber with the phoneNumber validator config.
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isValidPhoneNumber(String phoneNumber, org.json.JSONObject phoneNumberValidatorConfig)
    This method is used to checks whether the given phoneNumber is valid phoneNumber or not.
  • Method Details

    • isValidPhoneNumber

      boolean isValidPhoneNumber(String phoneNumber, org.json.JSONObject phoneNumberValidatorConfig)
      This method is used to checks whether the given phoneNumber is valid phoneNumber or not.
      Parameters:
      phoneNumber - Indicates the phoneNumber of an user which is used for validating the user phoneNumber by validator config.
      phoneNumberValidatorConfig - Holds JSONObject which is validating the user phoneNumber by validator config.
      Returns:
      True, if it is a valid phoneNumber