|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.commons.message.MessageBuilder
public final class MessageBuilder
A class to build a message.
Method Summary | |
---|---|
protected static String |
calculateBundleName(String messageCode)
Calculates the bundle name for the message code. |
protected static String |
calculateKey(String messageCode)
Calculates the key for the message code. |
static String |
getMessage(Locale locale,
String messageCode,
Object... args)
Returns the message. |
static String |
getMessage(String messageCode,
Object... args)
Returns the message. |
protected static String |
getMessageByArgs(Object... args)
Returns the message built by the arguments. |
protected static String |
getPattern(Locale locale,
String messageCode)
Returns the pattern of MessageFormat . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getMessage(String messageCode, Object... args)
messageCode
- the message codeargs
- the arguments
public static String getMessage(Locale locale, String messageCode, Object... args)
locale
- the localemessageCode
- the message codeargs
- the arguments
protected static String getMessageByArgs(Object... args)
args
- the arguments
protected static String getPattern(Locale locale, String messageCode)
MessageFormat
.
locale
- the localemessageCode
- the message code
MessageFormat
protected static String calculateBundleName(String messageCode)
messageCode
- the message code
protected static String calculateKey(String messageCode)
messageCode
- the message code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |