com.sonicsw.xq.service.xform
Class I18nMessage
java.lang.Object
com.sonicsw.xq.service.xform.I18nMessage
public class I18nMessage
- extends java.lang.Object
Provides an XSLT extension function to look up a message from a
resource bundle.
Method Summary |
static void |
init(java.util.ResourceBundle resourceBundle,
IComponentContext context)
|
static java.lang.Object |
message(java.lang.Double key,
java.lang.String defaultMsg)
Retrieves a message from the current resource bundle. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
I18nMessage
public I18nMessage()
init
public static void init(java.util.ResourceBundle resourceBundle,
IComponentContext context)
message
public static java.lang.Object message(java.lang.Double key,
java.lang.String defaultMsg)
- Retrieves a message from the current resource bundle. If the key
cannot be found, the default message text is returned.
- Parameters:
key
- the i18n key. This is down-cast to an integer and used
to retrieve the message.defaultMsg
- the default message text
Copyright © 2001-2012
Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.