Interface ReservationValidator
- All Known Implementing Classes:
RestrictedReservationValidator
public interface ReservationValidator
Facade of validator for reservation entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvalidateClientId
(UUID clientId) Checks if clientId is valid as identifier of associated client for a reservation entity.validateDate
(String stringDate) Checks if stringDate is valid as date for a reservation entity.
-
Method Details
-
validateClientId
Checks if clientId is valid as identifier of associated client for a reservation entity.- Parameters:
clientId
- the associated client identifier to evaluate.- Returns:
- a valid
UUID
ofclientId
. - Throws:
IllegalArgumentException
- ifclientId
is not valid.
-
validateDate
Checks if stringDate is valid as date for a reservation entity.- Parameters:
stringDate
- the string date to evaluate.- Returns:
- a valid
LocalDate
ofdate
. - Throws:
IllegalArgumentException
- ifstringDate
is not valid.
-