Interface ClientValidator
- All Known Implementing Classes:
RestrictedClientValidator
public interface ClientValidator
Facade of validator for client entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvalidateFirstName
(String firstName) Checks if firstName is valid as name for a client entity.validateLastName
(String lastName) Checks if lastName is valid as surname for a client entity.
-
Method Details
-
validateFirstName
Checks if firstName is valid as name for a client entity.- Parameters:
firstName
- the string parameter to evaluate.- Returns:
- a valid
String
offirstName
. - Throws:
IllegalArgumentException
- iffirstName
is not valid.
-
validateLastName
Checks if lastName is valid as surname for a client entity.- Parameters:
lastName
- the string parameter to evaluate.- Returns:
- a valid
String
oflastName
. - Throws:
IllegalArgumentException
- iflastName
is not valid.
-