Interface MTranslatedTextType
- All Known Implementing Classes:
MTranslatedText
@Immutable
public interface MTranslatedTextType
A text with zero or more alternative translations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<MLanguageCode, String> all()default MLanguageCodelanguage()text()
-
Method Details
-
language
- Returns:
- The base language
-
text
String text()- Returns:
- The text in the base language
-
translations
Map<MLanguageCode,String> translations()- Returns:
- The translations
-
all
- Returns:
- All texts including the base text and translations
-