Klasse ValidationMessageTemplates

java.lang.Object
de.kamillionlabs.hateoflux.utility.ValidationMessageTemplates

public class ValidationMessageTemplates extends Object
Utility class providing standard message templates for validation errors.
  • Methodendetails

    • valueNotAllowedToBeEmpty

      public static String valueNotAllowedToBeEmpty(String valueName)
      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

      public static String valueNotAllowedToBeNull(String valueName)
      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

      public static String valueIsNotAllowedToBeOfType(String valueName, String type)
      Returns a message indicating that a value is not allowed to be of a certain type.
      Parameter:
      valueName - the name of the value
      type - the disallowed type
      Gibt zurück:
      the formatted message
    • requiredValueWasNonExisting

      public static String requiredValueWasNonExisting(String valueName)
      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