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
Constructors - 
Method Summary
 
- 
Constructor Details
- 
PhoneNumValidation
public PhoneNumValidation() 
 - 
 - 
Method Details
- 
validate
Validates the given phone number.- Specified by:
 validatein interfaceValidationStrategy- Parameters:
 phoneNum- the phone number to validate- Throws:
 ApplicationException- if the phone number is invalid
 
 -