Class HeapBasedLocalizationStorage
-
- All Implemented Interfaces:
-
org.somda.sdc.glue.provider.localization.LocalizationStorage
public final class HeapBasedLocalizationStorage implements LocalizationStorage
Default implementation of LocalizationStorage.
Localized texts are stored in heap map and can be added during runtime.
-
-
Constructor Summary
Constructors Constructor Description HeapBasedLocalizationStorage()
-
Method Summary
Modifier and Type Method Description List<String>getSupportedLanguages()Gets a list of all supported languages. List<LocalizedData>getLocalizedData(List<String> references, BigInteger version, List<String> languages, List<LocalizedTextWidth> textWidths, List<BigInteger> numberOfLines)Gets a localized text that is referenced in the MDIB. final UnitaddLocalizedData(LocalizedData data)final UnitaddAllLocalizedData(List<LocalizedData> texts)-
-
Method Detail
-
getSupportedLanguages
@Synchronized() List<String> getSupportedLanguages()
Gets a list of all supported languages.
- Returns:
a list of supported language identifiers.
-
getLocalizedData
@Synchronized() List<LocalizedData> getLocalizedData(List<String> references, BigInteger version, List<String> languages, List<LocalizedTextWidth> textWidths, List<BigInteger> numberOfLines)
Gets a localized text that is referenced in the MDIB.
- Returns:
a list of LocalizedData texts that matches search criteria.
-
addLocalizedData
@Synchronized() final Unit addLocalizedData(LocalizedData data)
-
addAllLocalizedData
@Synchronized() final Unit addAllLocalizedData(List<LocalizedData> texts)
-
-
-
-