/** * Gets the message. <br> * Note, if the message identifier is not found in any properties file the NoSuchMessageException * will be thrown. * * @param messageId The message identifier * @param args Any arguments required by the message. * @return the message or NULL if the message code was not found. */ public static String getMessage(String messageId, Object[] args) { return SensusMessageUtil.getMessage(messageId, args, null); }
/** * Gets the message using the default locale. * * @param messageId The message identifier * @param args Any arguments required for the formatting of the message. * @param defaultMsgText If the messageId is not found then this message will be used instead. * @return the message or NULL if the message code was not found. */ public static String getMessage(String messageId, Object[] args, String defaultMsgText) { return SensusMessageUtil.getMessage(messageId, args, defaultMsgText, Locale.getDefault()); }
/** * Gets the message. * * @param messageId The message identifier * @return the message or NULL if the message code was not found. */ public static String getMessage(String messageId) { return SensusMessageUtil.getMessage(messageId, null); }