Class SurnameValidation
java.lang.Object
api.mpba.rastvdmy.service.validator.SurnameValidation
- All Implemented Interfaces:
 ValidationStrategy
Validates the surname of a user.
 The surname must start with an uppercase letter followed by 2-19 lowercase letters.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
SurnameValidation
public SurnameValidation() 
 - 
 - 
Method Details
- 
validate
Validates the given surname.- Specified by:
 validatein interfaceValidationStrategy- Parameters:
 surname- the surname to validate- Throws:
 ApplicationException- if the surname is invalid
 
 -