Class ValidationMessageUtil

java.lang.Object
org.faktorips.runtime.util.ValidationMessageUtil

public class ValidationMessageUtil extends Object
  • Method Details

    • generateValidationMessage

      public static String generateValidationMessage(Locale locale, String resourceBundleName, String msgKey, Object... formatArgs)
      Generates a validation error message localized using the provided Locale and formatted with the provided arguments.
      Parameters:
      locale - The Locale for localizing the message.
      resourceBundleName - The name of the resource bundle containing the message template.
      msgKey - The key in the resource bundle to get the message format.
      formatArgs - A list of arguments to format the message.
      Returns:
      the localized and formatted message