Class NameValidation
java.lang.Object
api.mpba.rastvdmy.service.validator.NameValidation
- All Implemented Interfaces:
ValidationStrategy
A validation strategy for validating names.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NameValidation
public NameValidation()
-
-
Method Details
-
validate
Validates the given name.- Specified by:
validatein interfaceValidationStrategy- Parameters:
name- the name to validate- Throws:
ApplicationException- if the name is invalid
-