Class ChineseAddressPopulator
- java.lang.Object
-
- de.hybris.platform.addressfacades.populators.ChineseAddressPopulator
-
- All Implemented Interfaces:
Populator<AddressModel,AddressData>
public class ChineseAddressPopulator extends java.lang.Object implements Populator<AddressModel,AddressData>
-
-
Constructor Summary
Constructors Constructor Description ChineseAddressPopulator(I18NService i18NService, Converter<CityModel,CityData> cityConverter, Converter<DistrictModel,DistrictData> districtConverter, NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringextractTitleName(TitleModel title)if address.getTitle() is null, return reverent by defaultConverter<CityModel,CityData>getCityConverter()Converter<DistrictModel,DistrictData>getDistrictConverter()protected I18NServicegetI18NService()protected NameWithTitleFormatStrategygetNameWithTitleFormatStrategy()voidpopulate(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.Since 1905voidsetNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy)Deprecated.Since 1905
-
-
-
Constructor Detail
-
ChineseAddressPopulator
public ChineseAddressPopulator(I18NService i18NService, Converter<CityModel,CityData> cityConverter, Converter<DistrictModel,DistrictData> districtConverter, NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
-
-
Method Detail
-
getI18NService
protected I18NService getI18NService()
-
setI18NService
@Deprecated public void setI18NService(I18NService i18nService)
Deprecated.Since 1905
-
getNameWithTitleFormatStrategy
protected NameWithTitleFormatStrategy getNameWithTitleFormatStrategy()
-
setNameWithTitleFormatStrategy
@Deprecated public void setNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
Deprecated.Since 1905
-
getDistrictConverter
public Converter<DistrictModel,DistrictData> getDistrictConverter()
-
populate
public void populate(AddressModel source, AddressData target)
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
protected void populateCity(AddressModel source, AddressData target)
-
populateDistrict
protected void populateDistrict(AddressModel source, AddressData target)
-
extractTitleName
protected java.lang.String extractTitleName(TitleModel title)
if address.getTitle() is null, return reverent by default- Parameters:
title-- Returns:
- title name
-
-