|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anthonyeden.lib.util.MessageUtilities
Utilities for retrieving localized messages.
Method Summary | |
static java.lang.String |
getMessage(java.lang.Class c,
java.lang.String pkg,
java.lang.String name,
java.lang.Object[] args)
Locate the given message and merge it with the given arguments using the MessageFormat class. |
static java.lang.String |
getMessage(java.lang.Class c,
java.lang.String pkg,
java.lang.String name,
java.lang.Object[] args,
java.util.Locale locale)
Locate the given message and merge it with the given arguments using the MessageFormat class. |
static java.lang.String |
getMessage(java.lang.String pkg,
java.lang.String name,
java.lang.Object[] args)
Locate the given message and merge it with the given arguments using the MessageFormat class. |
static java.lang.String |
getMessage(java.lang.String pkg,
java.lang.String name,
java.lang.Object[] args,
java.util.Locale locale)
Locate the given message and merge it with the given arguments using the MessageFormat class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getMessage(java.lang.String pkg, java.lang.String name, java.lang.Object[] args)
name
- The message nameargs
- The arguments
public static java.lang.String getMessage(java.lang.String pkg, java.lang.String name, java.lang.Object[] args, java.util.Locale locale)
The pkg argument is used to prepend a package name to the bundle name so that different JARs can have different bundles. For example, if pkg is com.foo then the Bundle should be located by the classloader at com/foo/messages.properties. pkg can be null in which case /messages.properties will be used.
pkg
- The packagename
- The message nameargs
- The argumentslocale
- The Locale
public static java.lang.String getMessage(java.lang.Class c, java.lang.String pkg, java.lang.String name, java.lang.Object[] args)
c
- The requesting classpkg
- The package namename
- The message nameargs
- The arguments
public static java.lang.String getMessage(java.lang.Class c, java.lang.String pkg, java.lang.String name, java.lang.Object[] args, java.util.Locale locale)
c
- The requesting Classname
- The message nameargs
- The argumentslocale
- The locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |