| java.lang.Object org.jpox.util.Localiser
Localiser | public class Localiser (Code) | | Resource Bundle manager, providing simplified means of using MessageFormat
to localise the JPOX system.
version: $Revision: 1.8 $ |
Method Summary | |
public static Localiser | getInstance(String bundle_name) Accessor for a helper instance for a bundle. | public static Localiser | getInstance(String bundle_name, ClassLoader class_loader) Accessor for a helper instance for a bundle. | public String | msg(boolean includeCode, String messageKey) Message formatter for an internationalised message. | public String | msg(boolean includeCode, String messageKey, long arg) Message formatter with one argument passed in that will be embedded in an internationalised message. | public String | msg(boolean includeCode, String messageKey, Object arg1) Message formatter with one argument passed in that will be embedded in an internationalised message. | public String | msg(boolean includeCode, String messageKey, Object arg1, Object arg2) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3, Object arg4) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(String messageKey) Message formatter for an internationalised message. | public String | msg(String messageKey, Object arg1) Message formatter with one argument passed in that will be embedded in an internationalised message. | public String | msg(String messageKey, Object arg1, Object arg2) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(String messageKey, Object arg1, Object arg2, Object arg3) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(String messageKey, Object arg1, Object arg2, Object arg3, Object arg4) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(String messageKey, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) Message formatter with a series of arguments passed in that will be embedded in an internationalised message. | public String | msg(String messageKey, long arg) Message formatter with one argument passed in that will be embedded in an internationalised message. | public static void | setDisplayCodesInMessages(boolean display) Method to allow turning on/off of display of error codes in messages. |
getInstance | public static Localiser getInstance(String bundle_name)(Code) | | Accessor for a helper instance for a bundle.
Parameters: bundle_name - the name of the bundle the helper instance bound to the bundle |
getInstance | public static Localiser getInstance(String bundle_name, ClassLoader class_loader)(Code) | | Accessor for a helper instance for a bundle.
Parameters: bundle_name - the name of the bundle Parameters: class_loader - the class loader from which to load the resourcebundle the helper instance bound to the bundle |
msg | public String msg(boolean includeCode, String messageKey)(Code) | | Message formatter for an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, long arg)(Code) | | Message formatter with one argument passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg - the argument the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, Object arg1)(Code) | | Message formatter with one argument passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg1 - the first argument the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, Object arg1, Object arg2)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3, Object arg4)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument Parameters: arg4 - the third argument the resolved message text |
msg | public String msg(boolean includeCode, String messageKey, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: includeCode - Whether to include the code in the message Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument Parameters: arg4 - the third argument Parameters: arg5 - the third argument the resolved message text |
msg | public String msg(String messageKey)(Code) | | Message formatter for an internationalised message.
Parameters: messageKey - the message key the resolved message text |
msg | public String msg(String messageKey, Object arg1)(Code) | | Message formatter with one argument passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg1 - the first argument the resolved message text |
msg | public String msg(String messageKey, Object arg1, Object arg2)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument the resolved message text |
msg | public String msg(String messageKey, Object arg1, Object arg2, Object arg3)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument the resolved message text |
msg | public String msg(String messageKey, Object arg1, Object arg2, Object arg3, Object arg4)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument Parameters: arg4 - the third argument the resolved message text |
msg | public String msg(String messageKey, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)(Code) | | Message formatter with a series of arguments passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg1 - the first argument Parameters: arg2 - the second argument Parameters: arg3 - the third argument Parameters: arg4 - the third argument Parameters: arg5 - the third argument the resolved message text |
msg | public String msg(String messageKey, long arg)(Code) | | Message formatter with one argument passed in that will be embedded in an internationalised message.
Parameters: messageKey - the message key Parameters: arg - the argument the resolved message text |
setDisplayCodesInMessages | public static void setDisplayCodesInMessages(boolean display)(Code) | | Method to allow turning on/off of display of error codes in messages.
Parameters: display - Whether to display codes |
|
|