|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.exception.util.MessageFactory
public class MessageFactory
Class for constructing localized messages.
| Method Summary | |
|---|---|
static String |
buildMessage(Locale locale,
Localizable specific,
Localizable general,
Object... arguments)
Builds a message string by from two patterns (specific and general) and an argument list. |
static String |
buildMessage(Locale locale,
Localizable pattern,
Object... arguments)
Builds a message string by from a pattern and its arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String buildMessage(Locale locale,
Localizable pattern,
Object... arguments)
locale - Locale in which the message should be translated.pattern - Format specifier.arguments - Format arguments.
public static String buildMessage(Locale locale,
Localizable specific,
Localizable general,
Object... arguments)
locale - Locale in which the message should be translated.specific - Format specifier (may be null).general - Format specifier (may be null).arguments - Format arguments. They will be substituted in
both the general and specific format specifiers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||