wheel
Class MessageSourceResourceBundleImpl
java.lang.Object
wheel.MessageSourceResourceBundleImpl
- All Implemented Interfaces:
- IMessagesSource
public class MessageSourceResourceBundleImpl
- extends java.lang.Object
- implements IMessagesSource
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageSourceResourceBundleImpl
public MessageSourceResourceBundleImpl()
getMessage
public java.lang.String getMessage(java.lang.String bundle,
java.lang.String key,
java.util.Locale locale,
StandaloneComponent caller)
- Description copied from interface:
IMessagesSource
- Tries to read a localized message from the given bundle with the given key and locale. If not found returns [KEY].
- Specified by:
getMessage
in interface IMessagesSource
- Parameters:
bundle
- Name of the bundle (in the long class name format)key
- Name of the message inside the bundlecaller
- The complex component that is asking for this message.
- Returns:
exists
public boolean exists(java.lang.String bundle,
java.lang.String key,
java.util.Locale locale,
StandaloneComponent caller)
- Description copied from interface:
IMessagesSource
- Returns true if a message with the given key exists in the given bundle with the given locale.
- Specified by:
exists
in interface IMessagesSource
caller
- The complex component that is asking for this message.
- Returns:
Copyright © 2007-2008. All Rights Reserved.