public class XMLMessages
extends java.lang.Object
Constructor and Description |
---|
XMLMessages() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createMsg(java.util.ListResourceBundle fResourceBundle,
java.lang.String msgKey,
java.lang.Object[] args)
Creates a message from the specified key and replacement
arguments, localized to the given locale.
|
static java.lang.String |
createXMLMessage(java.lang.String msgKey,
java.lang.Object[] args)
Creates a message from the specified key and replacement
arguments, localized to the given locale.
|
java.util.Locale |
getLocale()
Get the Locale object that is being used.
|
static java.util.ListResourceBundle |
loadResourceBundle(java.lang.String className)
Return a named ResourceBundle for a particular locale.
|
void |
setLocale(java.util.Locale locale)
Set the Locale object to use.
|
public void setLocale(java.util.Locale locale)
locale
- non-null reference to Locale object.public java.util.Locale getLocale()
public static final java.lang.String createXMLMessage(java.lang.String msgKey, java.lang.Object[] args)
msgKey
- The key for the message text.args
- The arguments to be used as replacement text
in the message created.public static final java.lang.String createMsg(java.util.ListResourceBundle fResourceBundle, java.lang.String msgKey, java.lang.Object[] args)
fResourceBundle
- The resource bundle to use.msgKey
- The message key to use.args
- The arguments to be used as replacement text
in the message created.public static java.util.ListResourceBundle loadResourceBundle(java.lang.String className) throws java.util.MissingResourceException
className
- The class name of the resource bundle.java.util.MissingResourceException
Copyright © 2014 Apache XML Project. All Rights Reserved.