to.etc.webapp.nls
Interface IBundle

All Superinterfaces:
NlsMessageProvider
All Known Implementing Classes:
BundleRef, BundleStack

public interface IBundle
extends NlsMessageProvider

Base interface for all resource bundle constructs.

Author:
Frits Jalvingh Created on Dec 31, 2010

Method Summary
 java.lang.String formatMessage(java.lang.String key, java.lang.Object... param)
          Gets the string, and applies default message formatting using the parameters passed in the current locale.
 java.lang.String getString(java.util.Locale loc, java.lang.String key)
          Returns a translation of key in the specified locale (or the one closest to it).
 java.lang.String getString(java.lang.String key)
          Returns the translation of the key passed in the current client locale.
 
Methods inherited from interface to.etc.webapp.nls.NlsMessageProvider
findMessage
 

Method Detail

getString

java.lang.String getString(java.util.Locale loc,
                           java.lang.String key)
Returns a translation of key in the specified locale (or the one closest to it). If no translation exists for the message in the specified bundle then we try the "default" bundle; if it still does not exist we return a string containing the key with ????.

Parameters:
loc -
key -
Throws:
ResourceNotFoundException - the bundle cannot be located.

getString

java.lang.String getString(java.lang.String key)
Returns the translation of the key passed in the current client locale.

Parameters:
key -
Returns:

formatMessage

java.lang.String formatMessage(java.lang.String key,
                               java.lang.Object... param)
Gets the string, and applies default message formatting using the parameters passed in the current locale.

Parameters:
key -
param -
Returns: