|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.util.Localiser
public class Localiser
Resource Bundle manager, providing simplified means of using MessageFormat to localise the system.
| Method Summary | |
|---|---|
static Localiser |
getInstance(java.lang.String bundle_name,
java.lang.ClassLoader class_loader)
Accessor for a helper instance for a bundle. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey)
Message formatter for an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
long arg)
Message formatter with one argument passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1)
Message formatter with one argument passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey)
Message formatter for an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
long arg)
Message formatter with one argument passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
java.lang.Object arg1)
Message formatter with one argument passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
java.lang.String |
msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Message formatter with a series of arguments passed in that will be embedded in an internationalised message. |
static void |
setDisplayCodesInMessages(boolean display)
Method to allow turning on/off of display of error codes in messages. |
static void |
setLanguage(java.lang.String languageCode)
Convenience method to change the language of the resource bundles used by the localisers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setLanguage(java.lang.String languageCode)
languageCode - The new language codepublic static void setDisplayCodesInMessages(boolean display)
display - Whether to display codes
public static Localiser getInstance(java.lang.String bundle_name,
java.lang.ClassLoader class_loader)
bundle_name - the name of the bundleclass_loader - the class loader from which to load the resource
bundle
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey)
includeCode - Whether to include the code in the messagemessageKey - the message key
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
long arg)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg - the argument
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg1 - the first argument
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg1 - the first argumentarg2 - the second argument
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argument
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the third argument
public java.lang.String msg(boolean includeCode,
java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
includeCode - Whether to include the code in the messagemessageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the third argumentarg5 - the third argument
public java.lang.String msg(java.lang.String messageKey)
messageKey - the message key
public java.lang.String msg(java.lang.String messageKey,
java.lang.Object arg1)
messageKey - the message keyarg1 - the first argument
public java.lang.String msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2)
messageKey - the message keyarg1 - the first argumentarg2 - the second argument
public java.lang.String msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
messageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argument
public java.lang.String msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
messageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the third argument
public java.lang.String msg(java.lang.String messageKey,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
messageKey - the message keyarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the third argumentarg5 - the third argument
public java.lang.String msg(java.lang.String messageKey,
long arg)
messageKey - the message keyarg - the argument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||