Class PhoneNumValidation
java.lang.Object
api.mpba.rastvdmy.service.validator.PhoneNumValidation
- All Implemented Interfaces:
ValidationStrategy
Validates a phone number based on a specific format.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PhoneNumValidation
public PhoneNumValidation()
-
-
Method Details
-
validate
Validates the given phone number.- Specified by:
validate
in interfaceValidationStrategy
- Parameters:
phoneNum
- the phone number to validate- Throws:
ApplicationException
- if the phone number is invalid
-