Sonic ESB API

com.sonicsw.xq.service.xform
Class I18nMessage

java.lang.Object
  extended by 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.


Constructor Summary
I18nMessage()
           
 
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
 

Constructor Detail

I18nMessage

public I18nMessage()
Method Detail

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

Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.