wt.util
Class LocaleIndependentMessage

java.lang.Object
  extended by wt.util.LocaleIndependentMessage
All Implemented Interfaces:
Serializable, LocalizableMessage, Message

public class LocaleIndependentMessage
extends Object
implements LocalizableMessage, Serializable

LocaleIndependentMessage is the wrapper class for getting a message which is independent of locale. It's used where a string that can't be localized must be issued where a LocalizableMessage is expected.



Supported API: true

Extendable: false

See Also:
LocalizableMessage, Serialized Form

Constructor Summary
LocaleIndependentMessage(String message)
          Constructs a Windchill message that can be used to independent of the locale.
 
Method Summary
 String getLocalizedMessage()
          Returns the original string.
 String getLocalizedMessage(Locale locale)
          Returns the original string.
protected  void setMessage(String message)
          Sets the message for this LocaleIndependentMessage.
 String toString()
          Returns the original string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocaleIndependentMessage

public LocaleIndependentMessage(String message)
Constructs a Windchill message that can be used to independent of the locale.

Supported API: true

See Also:
ResourceBundle, MessageFormat
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Returns the original string.

Supported API: true


getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Returns the original string. The locale parameter is ignored.

Supported API: true

Specified by:
getLocalizedMessage in interface LocalizableMessage
Parameters:
locale - the locale for which to get the localized message.
Returns:
String
See Also:
ResourceBundle

setMessage

protected void setMessage(String message)
Sets the message for this LocaleIndependentMessage.

Supported API: true


toString

public String toString()
Returns the original string.

Supported API: true

Overrides:
toString in class Object