public abstract class LocalizationSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULTBUNDLENAME
Default name for resource bundles
|
static Pattern |
DEFAULTPATTERN
Default pattern to parse a message with
|
| Modifier | Constructor and Description |
|---|---|
protected |
LocalizationSupport(Pattern idpattern,
String prefix,
String bundlename) |
protected |
LocalizationSupport(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
t(String msg,
Object... args)
Returns a localized message.
|
String |
tNoID(String msg,
Object... args)
Returns a localized message without its messageid.
|
LocalizedString |
x(String msg,
Object... args) |
LocalizedString |
xNoID(String msg,
Object... args) |
public static final String DEFAULTBUNDLENAME
public static Pattern DEFAULTPATTERN
protected LocalizationSupport(Pattern idpattern, String prefix, String bundlename)
idpattern - pattern to parse messageprefix - module nameprotected LocalizationSupport(String prefix)
idpattern - pattern to parse messageprefix - module namepublic LocalizedString x(String msg, Object... args)
msg - Message to be localizedargs - argumentst(String, Object...)public String t(String msg, Object... args)
msg - Message to be localizedargs - argumentspublic String tNoID(String msg, Object... args)
msg - msg to localize in the form of "X001: this is a message"
(the exact format must match the specified regular expression)args - arguments to substitute in msgpublic LocalizedString xNoID(String msg, Object... args)
msg - Message to be localizedargs - argumentstNoID(String, Object...)Copyright © 2011-2015 OpenESB Community. All Rights Reserved.