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