Class LocalizedString

java.lang.Object
eu.webtoolkit.jwt.LocalizedString

public class LocalizedString extends Object
The result of resolving a localized string.

This struct contains the result (in UTF-8 encoding) of resolving a localized string, consisting of its value, its format (TextFormat.Plain or TextFormat.XHTML), and a success value indicating whether the string was successfully resolved.

  • Field Details

    • value

      public String value
      The value of the resolved localized string.

      This value is UTF-8 encoded

    • format

      public TextFormat format
      The format that the resolved localized string is stored in (TextFormat.Plain or TextFormat.XHTML)
    • success

      public boolean success
      Indicates whether resolving the string was successful.
  • Constructor Details

    • LocalizedString

      public LocalizedString()
      Constructor for an unsuccessful localized string result.

      This constructor sets success to false.

    • LocalizedString

      public LocalizedString(String v, TextFormat f)
      Constructor for a successful localized string result.

      Sets the value to the given string, and the format to the given format, and sets success to true.