Class HeapBasedLocalizationStorage

    • Constructor Detail

      • HeapBasedLocalizationStorage

        HeapBasedLocalizationStorage()
    • Method Detail

      • getSupportedLanguages

         synchronized List<String> getSupportedLanguages()

        Gets a list of all supported languages.

        Returns:

        a list of supported language identifiers.

      • getLocalizedText

         synchronized List<LocalizedText> getLocalizedText(List<String> references, @Nullable() BigInteger version, List<String> languages)

        Gets a localized text that is referenced in the MDIB.

        Parameters:
        references - a zero or more reference names of the texts that are requested.
        version - of the referenced text that is requested.
        languages - a zero or more language identifiers to get different translations of the requested text.
        Returns:

        a list of LocalizedText texts that matches search criteria.

      • addLocalizedText

         synchronized void addLocalizedText(LocalizedText text)

        Adds provided localized text to the LocalizationStorage.

        Parameters:
        text - the LocalizedText to be added to the storage.
      • addAllLocalizedTexts

         synchronized void addAllLocalizedTexts(Collection<LocalizedText> texts)

        Adds provided collection of localized texts to the LocalizationStorage.

        Parameters:
        texts - a collection of LocalizedText to be added to the storage.