|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.msgcat.Catalog
An object that encapsulates access to locale specifc message catalogs for Waveset messages.
Do we want to throw excpetions here or just return an English message describing the error?
Field Summary | |
static char |
CATALOG_DELIM
|
static java.lang.String |
code_id
|
static char |
END_DELIM
|
static char |
START_DELIM
|
Method Summary | |
static java.lang.String |
format(java.util.Locale locale,
java.lang.String id)
|
static java.lang.String |
format(java.util.Locale locale,
java.lang.String id,
java.lang.Object[] parameters)
|
static java.lang.String |
format(java.util.Locale locale,
java.lang.String key,
java.lang.Object[] parameters,
java.lang.String defVal)
|
static java.lang.String |
format(java.lang.String id,
java.util.Locale locale)
|
static Catalog |
getCatalog()
Public factory method get the singleton Catalog object. |
static CustomCatalogSet |
getCustomCatalogSet()
Retrieve this catalog's custom catalog set. |
java.lang.String |
getMessage(java.util.Locale locale,
java.lang.String id)
Deprecated. - Use format(locale, id, null); |
java.lang.String |
getMessage(java.util.Locale locale,
java.lang.String id,
java.lang.Object[] parameters)
Deprecated. - Use format(locale, id, parameters); |
java.lang.String |
getMessage(java.lang.String id,
java.util.Locale locale)
Deprecated. - Use format(locale, id, null); |
java.lang.String |
getMessage(java.lang.String id,
java.lang.Object[] parameters)
Deprecated. - Use format(locale, id, parameters); |
java.lang.String |
getMessage(java.lang.String id,
java.lang.Object[] parameters,
java.util.Locale locale)
Deprecated. - Use format(locale, id, parameters); |
protected static java.text.MessageFormat |
getMessageFormat(java.lang.String pattern,
java.util.Locale locale)
Gets the MessageFormat class the fits the pattern and locale passed. |
static boolean |
isSupported(java.util.Locale locale)
|
static java.lang.String |
replaceEmbeddedKeys(java.lang.String msg,
java.util.Locale locale)
Parse a string looking for pattern [key]. |
boolean |
supportable(java.util.Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final char START_DELIM
public static final char END_DELIM
public static final char CATALOG_DELIM
Method Detail |
public static Catalog getCatalog()
public static boolean isSupported(java.util.Locale locale)
public boolean supportable(java.util.Locale locale)
public static java.lang.String format(java.util.Locale locale, java.lang.String id)
null
.public static java.lang.String format(java.lang.String id, java.util.Locale locale)
null
.public static java.lang.String format(java.util.Locale locale, java.lang.String id, java.lang.Object[] parameters)
null
.public static java.lang.String format(java.util.Locale locale, java.lang.String key, java.lang.Object[] parameters, java.lang.String defVal)
public static java.lang.String replaceEmbeddedKeys(java.lang.String msg, java.util.Locale locale)
msg
- A String which may have the pattern [key]locale
- The current locale
public java.lang.String getMessage(java.util.Locale locale, java.lang.String id)
public java.lang.String getMessage(java.util.Locale locale, java.lang.String id, java.lang.Object[] parameters)
public java.lang.String getMessage(java.lang.String id, java.lang.Object[] parameters)
public java.lang.String getMessage(java.lang.String id, java.util.Locale locale)
public java.lang.String getMessage(java.lang.String id, java.lang.Object[] parameters, java.util.Locale locale)
protected static java.text.MessageFormat getMessageFormat(java.lang.String pattern, java.util.Locale locale)
pattern
- Pattern used to format a message.locale
- Locale used to format the message.
public static CustomCatalogSet getCustomCatalogSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |