public final class LocalizedAttributesProcessor extends Object
| Constructor and Description |
|---|
LocalizedAttributesProcessor(I18NService i18NService) |
| Modifier and Type | Method and Description |
|---|---|
Map<Locale,Set<Locale>> |
getLocaleOrder(Collection<Locale> locales) |
Map<Locale,Set<String>> |
processQualifiers(Map<Locale,Set<String>> dirtyLocalizedAttributes)
Filters out qualifier attribute leaving the most specific:
Example :
|
Map<Locale,Map<String,Object>> |
processQualifiersWithValues(Map<Locale,Map<String,Object>> additionalLocalizedValuesMap) |
public LocalizedAttributesProcessor(I18NService i18NService)
public Map<Locale,Map<String,Object>> processQualifiersWithValues(Map<Locale,Map<String,Object>> additionalLocalizedValuesMap)
public Map<Locale,Set<String>> processQualifiers(Map<Locale,Set<String>> dirtyLocalizedAttributes)
Given the changes
new Locale("de") : foo , bar, baz
new Locale("de","au") : bar , bax
new Locale("de","au","inn") : baz , bax
The result will be :
new Locale("de") : foo
new Locale("de","au") : bar
new Locale("de","au","inn") : baz, bax
dirtyLocalizedAttributes - Copyright © 2017 SAP SE. All Rights Reserved.