Class MultilingualString

    • Method Detail

      • add

        public void add​(Locale locale,
                        String value)
        Add or replace value for a specific locale.
        Parameters:
        locale - The locale. Can not be null.
        value - The value for this locale.
      • getValue

        public String getValue​(Locale locale)
        Returns the value in the given locale as String.
        Parameters:
        locale - the locale of value to retrieve
        Returns:
        the value as String or null if not found
      • hasLocale

        public boolean hasLocale​(Locale locale)
        Determines if this multilingual string has value for the given locale
        Parameters:
        locale - The locale to test
        Returns:
        true if a value exists for this locale
        Throws:
        AmetysRepositoryException - if an error occurs.