com.oroad.stxx.util
Class PropertyMessageResources

java.lang.Object
  extended byorg.apache.struts.util.MessageResources
      extended byorg.apache.struts.util.PropertyMessageResources
          extended bycom.oroad.stxx.util.PropertyMessageResources
All Implemented Interfaces:
java.io.Serializable

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

Extends MessageResources for Struts 1.0

Author:
Jeff Pennal, Don Brown
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.util.PropertyMessageResources
locales, messages
 
Fields inherited from class org.apache.struts.util.MessageResources
config, defaultFactory, defaultLocale, factory, formats, returnNull
 
Constructor Summary
PropertyMessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config)
          Construct a new PropertyMessageResources according to the specified parameters.
PropertyMessageResources(org.apache.struts.util.MessageResourcesFactory factory, java.lang.String config, boolean returnNull)
          Construct a new PropertyMessageResources according to the specified parameters.
 
Method Summary
 java.util.Map getMessages(java.util.Locale locale)
          Returns a text message for the specified key, for the default Locale.
 
Methods inherited from class org.apache.struts.util.PropertyMessageResources
getMessage, 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, isPresent, isPresent, localeKey, log, log, messageKey, messageKey, setReturnNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMessageResources

public PropertyMessageResources(org.apache.struts.util.MessageResourcesFactory factory,
                                java.lang.String config)
Construct a new PropertyMessageResources according to the specified parameters.

Parameters:
factory - The MessageResourcesFactory that created us
config - The configuration parameter for this MessageResources

PropertyMessageResources

public PropertyMessageResources(org.apache.struts.util.MessageResourcesFactory factory,
                                java.lang.String config,
                                boolean returnNull)
Construct a new PropertyMessageResources according to the specified parameters.

Parameters:
factory - The MessageResourcesFactory that created us
config - The configuration parameter for this MessageResources
returnNull - The returnNull property we should initialize with
Method Detail

getMessages

public java.util.Map getMessages(java.util.Locale locale)
Returns a text message for the specified key, for the default Locale. A null string result will be returned by this method if no relevant message resource is found for this key or Locale, if the returnNull property is set. Otherwise, an appropriate error message will be returned.

This method must be implemented by a concrete subclass.

Parameters:
locale - The requested message Locale, or null for the system default Locale
Returns:
The message value