Package com.thepluginpeople.jemhod.api
Interface IMessageUtils
public interface IMessageUtils
Utility object used to get i18n messages and strings.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String code) Returns a 18n message from the message bundle.getMessage
(String code, Object... args) Returns a 18n message from the message bundle.getMessageOrDefault
(String code, String defaultMessage) Returns the message for the given code, if message doesn't exist then the defaultMessage.
-
Method Details
-
getMessage
Returns a 18n message from the message bundle.- Parameters:
code
- the code of the message- Returns:
- the i18n message
-
getMessage
Returns a 18n message from the message bundle.- Parameters:
code
- the code of the messageargs
- the arguments.- Returns:
- the i18n message
-
getMessageOrDefault
Returns the message for the given code, if message doesn't exist then the defaultMessage.- Parameters:
code
- the codedefaultMessage
- default message- Returns:
- the message for the given code, if the message doesn't exist the default message.
-