|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.i18n.I18n
public final class I18n
This class defines the way for getting message with ResourceBundle for different language. Inspired from http://java.sun.com/docs/books/tutorial/i18n/
| Method Summary | |
|---|---|
static I18n |
getInstance(Class<?> c)
Gets the instance for a given class. |
static I18n |
getInstance(Class<?> c,
ClassLoader cl)
Gets the instance for a given class. |
static I18n |
getInstance(String packageName)
Gets the instance for a given package. |
static I18n |
getInstance(String packageName,
ClassLoader cl)
Gets the instance for a given package. |
String |
getMessage(String key,
Object... objs)
Gets the formatted string with the given arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static I18n getInstance(Class<?> c)
c - the class for which we want a bundle.
public static I18n getInstance(Class<?> c,
ClassLoader cl)
c - the class for which we want a bundle.cl - the classloader used to load bundle.
public static I18n getInstance(String packageName)
packageName - the package for which we want a bundle.
public static I18n getInstance(String packageName,
ClassLoader cl)
packageName - the package for which we want a bundle.cl - the classloader used to load bundle.
public String getMessage(String key,
Object... objs)
key - the keystring on which to apply arguments.objs - list of argument for the formatter.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||