de.snailshell.struts
Class MessageResources

java.lang.Object
  extended by org.apache.struts.util.MessageResources
      extended by org.apache.struts.util.PropertyMessageResources
          extended by de.snailshell.struts.MessageResources
All Implemented Interfaces:
java.io.Serializable

public class MessageResources
extends org.apache.struts.util.PropertyMessageResources

This MessageResources class excludes certain keys from localization. Keys that start with "nokey!" are returned literally - the key is not looked up, but the key string is returned instead (without the "nokey!" prefix).

This software comes "as is" without any warranties. Use it at your own risk!

Version:
2007-07-24
Author:
Thomas Much
See Also:
MessageResourcesFactory, Serialized Form

Field Summary
static java.lang.String LITERAL_PREFIX
           
 
Fields inherited from class org.apache.struts.util.PropertyMessageResources
locales, log, messages
 
Fields inherited from class org.apache.struts.util.MessageResources
config, defaultFactory, defaultLocale, factory, formats, returnNull
 
Constructor Summary
MessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config)
           
MessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config, boolean returnNull)
           
 
Method Summary
 java.lang.String getMessage(java.util.Locale locale, java.lang.String key)
           
 
Methods inherited from class org.apache.struts.util.PropertyMessageResources
loadLocale
 
Methods inherited from class org.apache.struts.util.MessageResources
escape, getConfig, getFactory, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessageResources, getReturnNull, isEscape, isPresent, isPresent, localeKey, log, log, messageKey, messageKey, setEscape, setReturnNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LITERAL_PREFIX

public static final java.lang.String LITERAL_PREFIX
See Also:
Constant Field Values
Constructor Detail

MessageResources

public MessageResources(org.apache.struts.util.MessageResourcesFactory factory,
                        java.lang.String config)

MessageResources

public MessageResources(org.apache.struts.util.MessageResourcesFactory factory,
                        java.lang.String config,
                        boolean returnNull)
Method Detail

getMessage

public java.lang.String getMessage(java.util.Locale locale,
                                   java.lang.String key)
Overrides:
getMessage in class org.apache.struts.util.PropertyMessageResources