|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdoclet.util.Translator
public final class Translator
Utility class for doing i18n translations.
Method Summary | |
---|---|
static java.lang.String |
getString(java.lang.Class clazz,
java.lang.String resourceKey)
Gets the String attribute of the Translator class. |
static java.lang.String |
getString(java.lang.Class clazz,
java.lang.String resourceKey,
java.lang.String[] arguments)
Gets the String attribute of the Translator class. |
static java.lang.String |
getString(java.lang.String bundleKey,
java.lang.String resourceKey)
Gets the String attribute of the Translator class. |
static java.lang.String |
getString(java.lang.String bundleKey,
java.lang.String resourceKey,
java.lang.String[] arguments)
Gets the String attribute of the Translator 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 getString(java.lang.Class clazz, java.lang.String resourceKey)
clazz
- Messages class containing resource key constants, from which the bundle was generated.resourceKey
- The resource key to look up in the bundle.
public static java.lang.String getString(java.lang.Class clazz, java.lang.String resourceKey, java.lang.String[] arguments)
clazz
- Messages class containing resource key constants, from which the bundle was generated.resourceKey
- The resource key to look up in the bundle.arguments
- A string array of the arguments to be substituted for any placeholders ({0}, {1} etc.) in the
resource value string.
public static java.lang.String getString(java.lang.String bundleKey, java.lang.String resourceKey)
bundleKey
- Bundle name, without the tailing ".resources.Messages".resourceKey
- The resource key to look up in the bundle.
public static java.lang.String getString(java.lang.String bundleKey, java.lang.String resourceKey, java.lang.String[] arguments)
bundleKey
- Full bundle name, including the tailing ".resources.Messages".resourceKey
- The resource key to look up in the bundle.arguments
- A string array of the arguments to be substituted for any placeholders ({0}, {1} etc.) in the
resource value string.
|
http://xdoclet.sourceforge.net/ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |