org.exolab.castor.util
public class Messages extends Object
The resource file org.exolab.castor.util.resources.messages contains a list of all the messages in English. Additional resource files can be added for other languages and locales by placing them in the same package with a language/locale prefix. See the I18N documentation and use of resource bundles in the JDK docs.
Version: $Revision: 1.2 $ $Date: 2005/03/05 13:41:57 $
Nested Class Summary | |
---|---|
static class | Messages.EmptyResourceBundle |
Field Summary | |
---|---|
static String | ResourceName
The name of the resource holding all the messages in the English
language. |
Method Summary | |
---|---|
static String | format(String message, Object arg1)
Format the named message using a single argument and return the
full message text.
|
static String | format(String message, Object arg1, Object arg2)
Format the named message using two argument and return the
full message text.
|
static String | format(String message, Object arg1, Object arg2, Object arg3)
Format the named message using three argument and return the
full message text.
|
static String | format(String message, Object[] args)
Format the named message using any number of arguments and return the
full message text.
|
static String | message(String message)
Return the text of the named message without formatting.
|
static void | setLocale(Locale locale)
Set the locale to use for loading messages. |
Parameters: message The message name arg1 The first argument
Returns: The full message text
Parameters: message The message name arg1 The first argument arg2 The second argument
Returns: The full message text
Parameters: message The message name arg1 The first argument arg2 The second argument arg3 The third argument
Returns: The full message text
Parameters: message The message name args Argument list
Returns: The full message text
Parameters: message The message name
Returns: The full message text
Parameters: locale