Package wt.util

Class LocaleIndependentMessage

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

@FrozenSerializable 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:
  • Constructor Details

    • LocaleIndependentMessage

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

      Supported API: true
      See Also:
  • Method Details

    • 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:
    • 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