Klasse ValidationMessageTemplates
java.lang.Object
de.kamillionlabs.hateoflux.utility.ValidationMessageTemplates
Utility class providing standard message templates for validation errors.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringrequiredValueWasNonExisting(String valueName) Returns a message indicating that a required value was non-existing.static StringvalueIsNotAllowedToBeOfType(String valueName, String type) Returns a message indicating that a value is not allowed to be of a certain type.static StringvalueNotAllowedToBeEmpty(String valueName) Returns a message indicating that a value is not allowed to be empty.static StringvalueNotAllowedToBeNull(String valueName) Returns a message indicating that a value is not allowed to be null.
-
Methodendetails
-
valueNotAllowedToBeEmpty
Returns a message indicating that a value is not allowed to be empty.- Parameter:
valueName- the name of the value- Gibt zurück:
- the formatted message
-
valueNotAllowedToBeNull
Returns a message indicating that a value is not allowed to be null.- Parameter:
valueName- the name of the value- Gibt zurück:
- the formatted message
-
valueIsNotAllowedToBeOfType
Returns a message indicating that a value is not allowed to be of a certain type.- Parameter:
valueName- the name of the valuetype- the disallowed type- Gibt zurück:
- the formatted message
-
requiredValueWasNonExisting
Returns a message indicating that a required value was non-existing.- Parameter:
valueName- the name of the required value- Gibt zurück:
- the formatted message
-