multex
Class MultexLocale

java.lang.Object
  |
  +--multex.MultexLocale

Deprecated. since MulTEx 5 2003-09-08 Use only a java.util.ResourceBundle instead, in which you should define a cause marker, see MsgText.causeMarker. This class showed to be unnecessary, as we can get the java.util.Locale from the java.util.ResourceBundle, and we can get the cause message pattern from the java.util.ResourceBundle, too, if we provide it in the corresponding .properties file.

public class MultexLocale
extends java.lang.Object

Packages all locale specific adjustments for dynamic internationalization. In systems like web servers each request has to be answered in the language of the requester. For correctly reporting an exception with its causal chain you have to provide the ResourceBundle for the exception message texts, the Locale controlling the message parameter formatting, and the String for marking each cause message in the chain.

Author:
Christoph Knabe 2003-05-27

Field Summary
static MultexLocale nullLocale
          Deprecated. A predefined MultexLocale having no messages, the default java.util.Locale and the default cause marker.
 
Constructor Summary
MultexLocale(java.util.ResourceBundle i_messages, java.util.Locale i_locale, java.lang.String i_causeMarker)
          Deprecated. Initializes the object with message text patterns, a locale, and a cause marker.
 
Method Summary
 java.lang.String getCauseMarker()
          Deprecated. Returns the String marking each cause message in an exception message chain.
 java.util.Locale getLocale()
          Deprecated. Returns the Locale controlling the message parameter formatting by java.text.MessageFormat.
 java.util.ResourceBundle getMessages()
          Deprecated. Returns the message text patterns to be used for reporting each exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullLocale

public static final MultexLocale nullLocale
Deprecated. 
A predefined MultexLocale having no messages, the default java.util.Locale and the default cause marker.

Constructor Detail

MultexLocale

public MultexLocale(java.util.ResourceBundle i_messages,
                    java.util.Locale i_locale,
                    java.lang.String i_causeMarker)
Deprecated. 
Initializes the object with message text patterns, a locale, and a cause marker. Passing null to a parameter will result in using it's default value.

Parameters:
i_messages - If null, message text patterns are taken from the MultexException object itself.
i_locale - If null, defaults to the default Locale.
i_causeMarker - If null, defaults to MsgText.causeMarker.
See Also:
getMessages(), getLocale(), getCauseMarker()
Method Detail

getMessages

public java.util.ResourceBundle getMessages()
Deprecated. 
Returns the message text patterns to be used for reporting each exceptions.


getLocale

public java.util.Locale getLocale()
Deprecated. 
Returns the Locale controlling the message parameter formatting by java.text.MessageFormat.


getCauseMarker

public java.lang.String getCauseMarker()
Deprecated. 
Returns the String marking each cause message in an exception message chain.