Class ChineseAddressPopulator
java.lang.Object
de.hybris.platform.addressfacades.populators.ChineseAddressPopulator
- All Implemented Interfaces:
Populator<AddressModel,AddressData>
-
Constructor Summary
ConstructorsConstructorDescriptionChineseAddressPopulator(I18NService i18NService, Converter<CityModel, CityData> cityConverter, Converter<DistrictModel, DistrictData> districtConverter, NameWithTitleFormatStrategy nameWithTitleFormatStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractTitleName(TitleModel title) if address.getTitle() is null, return reverent by defaultprotected I18NServiceprotected NameWithTitleFormatStrategyvoidpopulate(AddressModel source, AddressData target) Populate the target instance with values from the source instance.protected voidpopulateCity(AddressModel source, AddressData target) protected voidpopulateDistrict(AddressModel source, AddressData target) voidsetI18NService(I18NService i18nService) Deprecated, for removal: This API element is subject to removal in a future version.Since 1905voidsetNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy) Deprecated, for removal: This API element is subject to removal in a future version.Since 1905
-
Constructor Details
-
ChineseAddressPopulator
public ChineseAddressPopulator(I18NService i18NService, Converter<CityModel, CityData> cityConverter, Converter<DistrictModel, DistrictData> districtConverter, NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
-
-
Method Details
-
getI18NService
-
setI18NService
Deprecated, for removal: This API element is subject to removal in a future version.Since 1905 -
getNameWithTitleFormatStrategy
-
setNameWithTitleFormatStrategy
@Deprecated(since="1905", forRemoval=true) public void setNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy) Deprecated, for removal: This API element is subject to removal in a future version.Since 1905 -
getCityConverter
-
getDistrictConverter
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AddressModel,AddressData> - Parameters:
source- the source objecttarget- the target to fill
-
populateCity
-
populateDistrict
-
extractTitleName
if address.getTitle() is null, return reverent by default- Parameters:
title-- Returns:
- title name
-