public class Messages
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static LocalizableSupport |
localizableSupport
The localizable support for the error messages.
|
protected static ResourceManager |
resourceManager
The resource manager to decode messages.
|
protected static java.lang.String |
RESOURCES
The error messages bundle class name.
|
Modifier | Constructor and Description |
---|---|
protected |
Messages()
This class does not need to be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements
Localizable.formatMessage(String,Object[]) . |
static int |
getCharacter(java.lang.String key) |
static int |
getInteger(java.lang.String key) |
static java.util.Locale |
getLocale()
Implements
Localizable.getLocale() . |
static java.lang.String |
getString(java.lang.String key) |
static void |
setLocale(java.util.Locale l)
Implements
Localizable.setLocale(Locale) . |
protected static final java.lang.String RESOURCES
protected static LocalizableSupport localizableSupport
protected static ResourceManager resourceManager
public static void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.public static java.util.Locale getLocale()
Localizable.getLocale()
.public static java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
Localizable.formatMessage(String,Object[])
.java.util.MissingResourceException
public static java.lang.String getString(java.lang.String key) throws java.util.MissingResourceException
java.util.MissingResourceException
public static int getInteger(java.lang.String key) throws java.util.MissingResourceException
java.util.MissingResourceException
public static int getCharacter(java.lang.String key) throws java.util.MissingResourceException
java.util.MissingResourceException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.