Interface LocalizedValueProvider
-
- All Known Implementing Classes:
DefaultLocalizedValueProvider
public interface LocalizedValueProviderA provider of special localized values, which are platform specific and depend on the platform configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalizedValuegetNullLocalizedValueForAllLanguages()Creates a localized value that setsnullfor all languages configured in the platform.LocalizedValuetoLocalizedValue(ConversionParameters parameters)Converts attribute value in theConversionParametersto a localized value based on the Content-Language of the request.LocalizedValuetoNullLocalizedValue(ConversionParameters parameters)Createsnulllocalized value depending on the conversion context.
-
-
-
Method Detail
-
toLocalizedValue
LocalizedValue toLocalizedValue(ConversionParameters parameters)
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
LocalizedValue toNullLocalizedValue(ConversionParameters parameters)
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.
-
-