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 Summary
Modifier and TypeMethodDescriptionCreates a localized value that setsnullfor all languages configured in the platform.toLocalizedValue(ConversionParameters parameters) Converts attribute value in theConversionParametersto a localized value based on the Content-Language of the request.toNullLocalizedValue(ConversionParameters parameters) Createsnulllocalized value depending on the conversion context.
-
Method Details
-
toLocalizedValue
Converts attribute value in theConversionParametersto 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 setsnullfor all languages configured in the platform.- Returns:
nullvalue for all possible locales.
-
toNullLocalizedValue
Createsnulllocalized value depending on the conversion context.- Parameters:
parameters- parameters providing context for the value conversion.- Returns:
- a
nullvalue for a specific locale, if Content-Language is specified in the request; otherwise creates anullvalue for all possible locales.
-