Class LocalizedData
-
- All Implemented Interfaces:
public final class LocalizedDataWrapper for localized text and its associated line count.
-
-
Method Summary
Modifier and Type Method Description final StringgetValue()final StringgetReference()final StringgetLanguage()final BigIntegergetVersion()final LocalizedTextWidthgetTextWidth()final BigIntegergetLines()final LocalizedTexttoLocalizedText()final static LocalizedDatatryFrom(LocalizedText localizedText, BigInteger lines)Tries to create a LocalizedData from a LocalizedText and the number of lines. final static LocalizedDatatryFrom(String value, String reference, String language, BigInteger version, LocalizedTextWidth textWidth, BigInteger lines)Tries to create a LocalizedData from a LocalizedText and the number of lines. -
-
Method Detail
-
getReference
final String getReference()
-
getLanguage
final String getLanguage()
-
getVersion
final BigInteger getVersion()
-
getTextWidth
final LocalizedTextWidth getTextWidth()
-
getLines
final BigInteger getLines()
-
toLocalizedText
final LocalizedText toLocalizedText()
-
tryFrom
final static LocalizedData tryFrom(LocalizedText localizedText, BigInteger lines)
Tries to create a LocalizedData from a LocalizedText and the number of lines. Checks if the provided LocalizedText has all required attributes set and that the number of lines is greater than zero.
-
tryFrom
final static LocalizedData tryFrom(String value, String reference, String language, BigInteger version, LocalizedTextWidth textWidth, BigInteger lines)
Tries to create a LocalizedData from a LocalizedText and the number of lines. Checks if the provided LocalizedText has all required attributes set and that the number of lines is greater than zero.
-
-
-
-