Package eu.webtoolkit.jwt
Class LocalizedString
- java.lang.Object
-
- eu.webtoolkit.jwt.LocalizedString
-
public class LocalizedString extends java.lang.ObjectThe 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.PlainorTextFormat.XHTML), and a success value indicating whether the string was successfully resolved.
-
-
Field Summary
Fields Modifier and Type Field Description TextFormatformatThe format that the resolved localized string is stored in (TextFormat.PlainorTextFormat.XHTML)booleansuccessIndicates whether resolving the string was successful.java.lang.StringvalueThe value of the resolved localized string.
-
Constructor Summary
Constructors Constructor Description LocalizedString()Constructor for an unsuccessful localized string result.LocalizedString(java.lang.String v, TextFormat f)Constructor for a successful localized string result.
-
-
-
Field Detail
-
value
public java.lang.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.PlainorTextFormat.XHTML)
-
success
public boolean success
Indicates whether resolving the string was successful.
-
-
Constructor Detail
-
LocalizedString
public LocalizedString()
Constructor for an unsuccessful localized string result.This constructor sets success to false.
-
LocalizedString
public LocalizedString(java.lang.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.
-
-