Class LocalizedText

    • Constructor Detail

      • LocalizedText

        public LocalizedText()
      • LocalizedText

        public LocalizedText​(Locale locale,
                             String text)
    • Method Detail

      • getLocales

        public List<Locale> getLocales()
        Returns:
        all locales for which translated texts are available.
      • getText

        public String getText()
        Returns:
        first found text
      • getText

        public String getText​(Locale locale)
        Parameters:
        locale - the desired locale.
        Returns:
        text with the given locale
      • has

        public boolean has​(Locale locale)
      • setText

        public void setText​(Locale locale,
                            String text)
        sets (means: "add" or "replace") a text with a given locale
        Parameters:
        locale - the locale of text
        text - the text content