Package eu.webtoolkit.jwt
Class LocalizedString
java.lang.Object
eu.webtoolkit.jwt.LocalizedString
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 Summary
Modifier and TypeFieldDescriptionThe format that the resolved localized string is stored in (TextFormat.Plain
orTextFormat.XHTML
)boolean
Indicates whether resolving the string was successful.The value of the resolved localized string. -
Constructor Summary
ConstructorDescriptionConstructor for an unsuccessful localized string result.LocalizedString
(String v, TextFormat f) Constructor for a successful localized string result. -
Method Summary
-
Field Details
-
value
The value of the resolved localized string.This value is UTF-8 encoded
-
format
The format that the resolved localized string is stored in (TextFormat.Plain
orTextFormat.XHTML
) -
success
public boolean successIndicates 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
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.
-