Interface ClientValidator

All Known Implementing Classes:
RestrictedClientValidator

public interface ClientValidator
Facade of validator for client entities.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Checks if firstName is valid as name for a client entity.
    Checks if lastName is valid as surname for a client entity.
  • Method Details

    • validateFirstName

      String validateFirstName(String firstName) throws IllegalArgumentException
      Checks if firstName is valid as name for a client entity.
      Parameters:
      firstName - the string parameter to evaluate.
      Returns:
      a valid String of firstName.
      Throws:
      IllegalArgumentException - if firstName is not valid.
    • validateLastName

      String validateLastName(String lastName) throws IllegalArgumentException
      Checks if lastName is valid as surname for a client entity.
      Parameters:
      lastName - the string parameter to evaluate.
      Returns:
      a valid String of lastName.
      Throws:
      IllegalArgumentException - if lastName is not valid.