Interface LocalizedValueProvider

  • All Known Implementing Classes:
    DefaultLocalizedValueProvider

    public interface LocalizedValueProvider
    A provider of special localized values, which are platform specific and depend on the platform configuration.
    • Method Detail

      • toLocalizedValue

        LocalizedValue toLocalizedValue​(ConversionParameters parameters)
        Converts attribute value in the ConversionParameters to a localized value based on the Content-Language of the request.
        Parameters:
        parameters - a conversion context containing a single value for a localized attribute.
        Returns:
        localized value of the context attribute
      • getNullLocalizedValueForAllLanguages

        LocalizedValue getNullLocalizedValueForAllLanguages()
        Creates a localized value that sets null for all languages configured in the platform.
        Returns:
        null value for all possible locales.
      • toNullLocalizedValue

        LocalizedValue toNullLocalizedValue​(ConversionParameters parameters)
        Creates null localized value depending on the conversion context.
        Parameters:
        parameters - parameters providing context for the value conversion.
        Returns:
        a null value for a specific locale, if Content-Language is specified in the request; otherwise creates a null value for all possible locales.