Package com.ptc.windchill.baseserver
Interface ServerMessageLocalizer
public interface ServerMessageLocalizer
Wrapper around the WTMessage class to allow for unit testing.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedMessage(String bundle_name, String key, Object... param_array) Returns a localized message from the specified bundle, key, and parameters, using the locale from session
Supported API: truegetLocalizedMessage(String aBundleName, String aKey, Object aParam, Locale aLocale) Returns a localized message from the specified bundle, key, and parameters, using the locale specified for the thread.
-
Method Details
-
getLocalizedMessage
String getLocalizedMessage(String bundle_name, String key, Object... param_array) throws WTException Returns a localized message from the specified bundle, key, and parameters, using the locale from session
Supported API: true- Parameters:
bundle_name- name of the resource bundle to usekey- key to use for the message in the bundleparam_array- parameters to use for the message. if its persistable we get display identity for it else we directly use what is passed in the message- Returns:
- localized message
- Throws:
WTException
-
getLocalizedMessage
Returns a localized message from the specified bundle, key, and parameters, using the locale specified for the thread.
Supported API: true- Parameters:
aBundleName- name of the resource bundle to useaKey- key to use for the message in the bundleaParam- parameter to use for the messageaLocale- locale- Returns:
- localized message
-