Package com.priint.pubserver.lang
Class Translation
java.lang.Object
com.priint.pubserver.lang.Translation
- All Implemented Interfaces:
Serializable
List of translations for a identifier.
Exposes a fluid interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTranslation entry associating a language with a localized text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntry(@NotNull Translation.Entry entry) Add a translation entry for the identifier.Add a translation entry for the identifier.Get all localized values for the identifier.Get the identifier for the translations.getValue()setEntries(List<Translation.Entry> entries) Set the localized values for the identifier.setIdentifier(String identifier) Set the identifier for the translations.toString()
-
Constructor Details
-
Translation
public Translation() -
Translation
-
-
Method Details
-
getIdentifier
Get the identifier for the translations.- Returns:
- identifier of the translation
-
setIdentifier
Set the identifier for the translations.- Parameters:
identifier- new identifier for the translation- Returns:
- Translation for chaining.
-
getEntries
Get all localized values for the identifier.- Returns:
- localized values for the identifier
-
setEntries
Set the localized values for the identifier.- Parameters:
entries- localized entries for this translation- Returns:
- Translation for chaining.
-
addEntry
Add a translation entry for the identifier.- Parameters:
entry- new localized entry for this translation- Returns:
- Translation for chaining.
-
addEntry
Add a translation entry for the identifier.- Parameters:
lang- language codevalue- value of translation * @return Translation for chaining.
-
localized
-
getValue
-
getValue
-
toString
-