public class DefaultI18NFacade extends java.lang.Object implements I18NFacade
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultI18NFacade.RegionNameComparator |
| Constructor and Description |
|---|
DefaultI18NFacade() |
| Modifier and Type | Method and Description |
|---|---|
protected CommonI18NService |
getCommonI18NService() |
protected Converter<CountryModel,CountryData> |
getCountryConverter() |
CountryData |
getCountryForIsocode(java.lang.String countryIso)
Returns the country with the matching isocode parameter.
|
RegionData |
getRegion(java.lang.String countryIso,
java.lang.String regionIso)
Get the region data for a county and region ISO code
|
protected Converter<RegionModel,RegionData> |
getRegionConverter() |
java.util.Map<java.lang.String,java.util.List<RegionData>> |
getRegionsForAllCountries()
Get map of country iso code to list of sorted region datas for all known countries.
|
java.util.Map<java.lang.String,java.util.List<RegionData>> |
getRegionsForCountries(java.util.Collection<java.lang.String> countryIsoCodes)
Get map of country iso code to list of sorted region datas for specified countries.
|
java.util.List<RegionData> |
getRegionsForCountryIso(java.lang.String countryIso)
Get the list of regions for a country.
|
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setCountryConverter(Converter<CountryModel,CountryData> countryConverter) |
void |
setRegionConverter(Converter<RegionModel,RegionData> regionConverter) |
public RegionData getRegion(java.lang.String countryIso, java.lang.String regionIso)
I18NFacadegetRegion in interface I18NFacadecountryIso - the country iso coderegionIso - the region iso codepublic java.util.List<RegionData> getRegionsForCountryIso(java.lang.String countryIso)
I18NFacadegetRegionsForCountryIso in interface I18NFacadecountryIso - the country iso codepublic java.util.Map<java.lang.String,java.util.List<RegionData>> getRegionsForAllCountries()
I18NFacadegetRegionsForAllCountries in interface I18NFacadepublic java.util.Map<java.lang.String,java.util.List<RegionData>> getRegionsForCountries(java.util.Collection<java.lang.String> countryIsoCodes)
I18NFacadegetRegionsForCountries in interface I18NFacadecountryIsoCodes - list of country codespublic CountryData getCountryForIsocode(java.lang.String countryIso)
I18NFacadegetCountryForIsocode in interface I18NFacadecountryIso - the isocode of the country we want to return.protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected Converter<RegionModel,RegionData> getRegionConverter()
public void setRegionConverter(Converter<RegionModel,RegionData> regionConverter)
protected Converter<CountryModel,CountryData> getCountryConverter()
public void setCountryConverter(Converter<CountryModel,CountryData> countryConverter)
Copyright © 2018 SAP SE. All Rights Reserved.