API Overview API Index Package Overview Direct link to this page
Struts 1.3
  org.apache.struts.util. PropertyMessageResources View Source
Author(s)
Since
Version
$Rev: 480549 $ $Date: 2006-11-29 06:16:15 -0600 (Wed, 29 Nov 2006) $
Serial
Hierarchy
 Object
      MessageResources
          PropertyMessageResources
Implements
Subclasses
Description
public class PropertyMessageResources
  Concrete subclass of MessageResources that reads message keys and corresponding strings from named property resources in a similar manner (see modes below) that java.util.PropertyResourceBundle does.
See also:   
Constructors
public PropertyMessageResources (MessageResourcesFactory factory, String config)
  Construct a new PropertyMessageResources according to the specified parameters.
public PropertyMessageResources (MessageResourcesFactory factory, String config, boolean returnNull)
  Construct a new PropertyMessageResources according to the specified parameters.
Methods
Hide/Show inherited methods
protected String escape (String string) [Inherited From MessageResources]
  Escape any single quote characters that are included in the specified message string.
public String getConfig () [Inherited From MessageResources]
  The configuration parameter used to initialize this MessageResources.
public MessageResourcesFactory getFactory () [Inherited From MessageResources]
  The MessageResourcesFactory that created this instance.
public String getMessage (Locale locale, String key) [Specified in MessageResources]
  Returns a text message for the specified key, for the specified or default Locale.
public String getMessage (Locale locale, String key, Object arg0) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (Locale locale, String key, Object args) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (Locale locale, String key, Object arg0, Object arg1) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (Locale locale, String key, Object arg0, Object arg1, Object arg2) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (Locale locale, String key, Object arg0, Object arg1, Object arg2, Object arg3) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (String key) [Inherited From MessageResources]
  Returns a text message for the specified key, for the default Locale.
public String getMessage (String key, Object arg0) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (String key, Object args) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (String key, Object arg0, Object arg1) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (String key, Object arg0, Object arg1, Object arg2) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
public String getMessage (String key, Object arg0, Object arg1, Object arg2, Object arg3) [Inherited From MessageResources]
  Returns a text message after parametric replacement of the specified parameter placeholders.
publicstaticsynchronized MessageResources getMessageResources (String config) [Inherited From MessageResources]
  Create and return an instance of MessageResources for the created by the default MessageResourcesFactory.
public boolean getReturnNull () [Inherited From MessageResources]
  Indicates that a null is returned instead of an error message string if an unknown Locale or key is requested.
public boolean isEscape () [Inherited From MessageResources]
  Indicates whether 'escape processing' should be performed on the error message string.
public boolean isPresent (Locale locale, String key) [Inherited From MessageResources]
  Return true if there is a defined message for the specified key in the specified Locale.
public boolean isPresent (String key) [Inherited From MessageResources]
  Return true if there is a defined message for the specified key in the system default locale.
protectedsynchronized void loadLocale (String localeKey)
  Load the messages associated with the specified Locale key.
protected String localeKey (Locale locale) [Inherited From MessageResources]
  Compute and return a key to be used in caching information by a Locale.
public void log (String message) [Inherited From MessageResources]
  Log a message to the Writer that has been configured for our use.
public void log (String message, Throwable throwable) [Inherited From MessageResources]
  Log a message and exception to the Writer that has been configured for our use.
protected String messageKey (Locale locale, String key) [Inherited From MessageResources]
  Compute and return a key to be used in caching information by Locale and message key.
protected String messageKey (String localeKey, String key) [Inherited From MessageResources]
  Compute and return a key to be used in caching information by locale key and message key.
public void setEscape (boolean escape) [Inherited From MessageResources]
  Set whether 'escape processing' should be performed on the error message string.
public void setMode (String mode)
  Set the compatibility mode this implementation uses for message lookup.
public void setReturnNull (boolean returnNull) [Inherited From MessageResources]
  Indicates that a null is returned instead of an error message string if an unknown Locale or key is requested.
Fields
Hide/Show inherited fields
protected String config [Inherited From MessageResources]
The configuration parameter used to initialize this MessageResources.
protectedstatic MessageResourcesFactory defaultFactory [Inherited From MessageResources]
The default MessageResourcesFactory used to create MessageResources instances.
protected Locale defaultLocale [Inherited From MessageResources]
The default Locale for our environment.
protected MessageResourcesFactory factory [Inherited From MessageResources]
The MessageResourcesFactory that created this instance.
protected HashMap formats [Inherited From MessageResources]
The set of previously created MessageFormat objects, keyed by the key computed in messageKey().
protected HashMap locales
The set of locale keys for which we have already loaded messages, keyed by the value calculated in localeKey().
protectedfinalstatic Log log [Overrides MessageResources]
The Log instance for this class.
protected HashMap messages
The cache of messages we have accumulated over time, keyed by the value calculated in messageKey().
protected boolean returnNull [Inherited From MessageResources]
Indicate is a null is returned instead of an error message string when an unknown Locale or key is requested.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar