Interface IMessageUtils


public interface IMessageUtils
Utility object used to get i18n messages and strings.
  • Method Details

    • getMessage

      String getMessage(String code)
      Returns a 18n message from the message bundle.
      Parameters:
      code - the code of the message
      Returns:
      the i18n message
    • getMessage

      String getMessage(String code, Object... args)
      Returns a 18n message from the message bundle.
      Parameters:
      code - the code of the message
      args - the arguments.
      Returns:
      the i18n message
    • getMessageOrDefault

      String getMessageOrDefault(String code, String defaultMessage)
      Returns the message for the given code, if message doesn't exist then the defaultMessage.
      Parameters:
      code - the code
      defaultMessage - default message
      Returns:
      the message for the given code, if the message doesn't exist the default message.