|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.res.XMLMessages
public class XMLMessages
A utility class for issuing XML error messages.
Constructor Summary | |
---|---|
XMLMessages()
|
Method Summary | |
---|---|
static String |
createMsg(ListResourceBundle fResourceBundle,
String msgKey,
Object[] args)
Creates a message from the specified key and replacement arguments, localized to the given locale. |
static String |
createXMLMessage(String msgKey,
Object[] args)
Creates a message from the specified key and replacement arguments, localized to the given locale. |
Locale |
getLocale()
Get the Locale object that is being used. |
static ListResourceBundle |
loadResourceBundle(String className)
Return a named ResourceBundle for a particular locale. |
void |
setLocale(Locale locale)
Set the Locale object to use. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLMessages()
Method Detail |
---|
public void setLocale(Locale locale)
locale
- non-null reference to Locale object.public Locale getLocale()
public static final String createXMLMessage(String msgKey, 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 String createMsg(ListResourceBundle fResourceBundle, String msgKey, 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 ListResourceBundle loadResourceBundle(String className) throws MissingResourceException
className
- The class name of the resource bundle.
MissingResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |