|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.util.MessageResources
org.apache.struts.util.PropertyMessageResources
de.snailshell.struts.MessageResources
public class MessageResources
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!
MessageResourcesFactory
,
Serialized FormField 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 |
---|
public static final java.lang.String LITERAL_PREFIX
Constructor Detail |
---|
public MessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config)
public MessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config, boolean returnNull)
Method Detail |
---|
public java.lang.String getMessage(java.util.Locale locale, java.lang.String key)
getMessage
in class org.apache.struts.util.PropertyMessageResources
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |