Package com.skava.strategy
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 TypeMethodDescriptionboolean
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
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
- HoldsJSONObject
which is validating the user phoneNumber by validator config.- Returns:
- True, if it is a valid phoneNumber
-