wheel
Interface IMessagesSource

All Known Implementing Classes:
MessageSourceResourceBundleImpl

public interface IMessagesSource

A source for localized messages.

Author:
Henri Frilund

Method Summary
 boolean exists(java.lang.String bundle, java.lang.String key, java.util.Locale locale, StandaloneComponent caller)
          Returns true if a message with the given key exists in the given bundle with the given locale.
 java.lang.String getMessage(java.lang.String bundle, java.lang.String key, java.util.Locale locale, StandaloneComponent caller)
          Tries to read a localized message from the given bundle with the given key and locale.
 

Method Detail

getMessage

java.lang.String getMessage(java.lang.String bundle,
                            java.lang.String key,
                            java.util.Locale locale,
                            StandaloneComponent caller)
Tries to read a localized message from the given bundle with the given key and locale. If not found returns [KEY].

Parameters:
bundle - Name of the bundle (in the long class name format)
key - Name of the message inside the bundle
locale -
caller - The complex component that is asking for this message.
Returns:

exists

boolean exists(java.lang.String bundle,
               java.lang.String key,
               java.util.Locale locale,
               StandaloneComponent caller)
Returns true if a message with the given key exists in the given bundle with the given locale.

Parameters:
bundle -
key -
locale -
caller - The complex component that is asking for this message.
Returns:


Copyright © 2007-2008. All Rights Reserved.