public class IlrMessages extends IlrPropertyManager
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(java.lang.String key,
java.lang.Object arg0)
Deprecated.
|
static java.lang.String |
format(java.lang.String key,
java.lang.Object[] args)
Deprecated.
|
static java.lang.String |
format(java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
Deprecated.
|
static java.lang.String |
format(java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Deprecated.
|
protected java.lang.String |
getBaseClassName()
Deprecated.
Returns the base class name for the messages, that is "messages".
|
static char |
getChar(IlrPropertyBundle bundle,
java.lang.String key,
char defaultValue)
Deprecated.
Returns the char associated to the key
key
or the given default value if the key is not found. |
static char |
getChar(java.lang.String key,
char defaultValue)
Deprecated.
Returns the char associated to the key
key
or the given default value if the key is not found. |
static int |
getInt(java.lang.String key,
int defaultValue)
Deprecated.
Returns the integer associated to the specified key,
or the defaultValue if the key is not found or if the
key can not be parsed as Integer.
|
static java.lang.String |
getMessage(IlrPropertyBundle bundle,
java.lang.String key)
Deprecated.
Returns the string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(IlrPropertyBundle bundle,
java.lang.String key,
java.lang.Object[] args)
Deprecated.
Returns the formatted string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(IlrPropertyBundle bundle,
java.lang.String key,
java.lang.String defaultValue)
Deprecated.
Returns the string associated to the specified key or the given default
value if the key is not found.
|
static java.lang.String |
getMessage(IlrPropertyBundle bundle,
java.lang.String key,
java.lang.String defaultValue,
java.lang.Object[] args)
Deprecated.
Returns the formatted string associated to the specified key,
or the defaultValue if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key)
Deprecated.
Returns the string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key,
java.util.Locale locale)
Deprecated.
Returns the string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] args)
Deprecated.
Returns the formatted string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] args,
java.util.Locale locale)
Deprecated.
Returns the formatted string associated to the specified key or the key itself
if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key,
java.lang.String defaultValue)
Deprecated.
Returns the string associated to the specified key or the given default
value if the key is not found.
|
static java.lang.String |
getMessage(java.lang.String key,
java.lang.String defaultValue,
java.util.Locale locale)
Deprecated.
Returns the string associated to the specified key or the given default
value if the key is not found.
|
static IlrMessages |
getMessages()
Deprecated.
Return the only instance of
IlrMessages. |
addPrefix, addSuffix, findPropertyBundle, findPropertyBundle, getClassLoader, getLocale, getMaximumDepth, getPrefixes, getPropertyBundle, getPropertyBundle, getSuffixes, getValue, getValue, getValue, getValue, insertPrefixAt, insertSuffixAt, removePrefixAt, removeSuffixAt, setClassLoader, setLocale, setMaximumDepth, setPrefixes, setSuffixespublic static IlrMessages getMessages()
IlrMessages. The message manager
organizes the messages as a hierarchy of property bundles.IlrPropertyManagerprotected java.lang.String getBaseClassName()
getBaseClassName in class IlrPropertyManagerpublic static char getChar(java.lang.String key,
char defaultValue)
key
or the given default value if the key is not found.key - The key to search.defaultValue - The default value.public static char getChar(IlrPropertyBundle bundle, java.lang.String key, char defaultValue)
key
or the given default value if the key is not found. The search is limited to
the specified property bundle.bundle - The bundle to look into.key - The key to search.defaultValue - The default value.public static java.lang.String getMessage(java.lang.String key)
key - The key to search.public static java.lang.String getMessage(java.lang.String key,
java.util.Locale locale)
key - The key to search.locale - The locale.public static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key)
bundle - The bundle to look into.key - The key to search.public static java.lang.String getMessage(java.lang.String key,
java.lang.String defaultValue)
key - The key to search.defaultValue - The default value.public static java.lang.String getMessage(java.lang.String key,
java.lang.String defaultValue,
java.util.Locale locale)
key - The key to search.defaultValue - The default value.locale - The locale.public static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultValue)
bundle - The bundle to look into.key - The key to search.defaultValue - The default value.public static java.lang.String getMessage(java.lang.String key,
java.lang.Object[] args)
java.text.MessageFormat.format(String pattern, Object[] arguments)
method.key - The key to search.args - An array of objects to be formatted and substituted.public static java.lang.String getMessage(java.lang.String key,
java.lang.Object[] args,
java.util.Locale locale)
java.text.MessageFormat.format(String pattern, Object[] arguments)
method.key - The key to search.args - An array of objects to be formatted and substituted.locale - The locale.public static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.Object[] args)
bundle - The bundle to look into.key - The key to search.args - An array of objects to be formatted and substituted.public static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultValue, java.lang.Object[] args)
bundle - The bundle to look into.key - The key to search.defaultValue - The value to return if the key is not found.args - An array of objects to be formatted and substituted.public static int getInt(java.lang.String key,
int defaultValue)
key - The key to search.defaultValue - The value to return if the key is not found.public static java.lang.String format(java.lang.String key,
java.lang.Object arg0)
public static java.lang.String format(java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
public static java.lang.String format(java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
public static java.lang.String format(java.lang.String key,
java.lang.Object[] args)
© Copyright IBM Corp. 1987, 2017