public class ChineseAddressPopulator extends java.lang.Object implements Populator<AddressModel,AddressData>
| Constructor and Description |
|---|
ChineseAddressPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected CityData |
extractCity(AddressModel source) |
protected DistrictData |
extractDistrict(AddressModel source) |
protected java.lang.String |
extractTitleName(TitleModel title)
if address.getTitle() is null, return reverent by default
|
I18NService |
getI18NService() |
protected NameWithTitleFormatStrategy |
getNameWithTitleFormatStrategy() |
void |
populate(AddressModel source,
AddressData target)
Populate the target instance with values from the source instance.
|
void |
setI18NService(I18NService i18nService) |
void |
setNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy) |
public I18NService getI18NService()
public void setI18NService(I18NService i18nService)
protected NameWithTitleFormatStrategy getNameWithTitleFormatStrategy()
public void setNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
public void populate(AddressModel source, AddressData target)
Populatorpopulate in interface Populator<AddressModel,AddressData>source - the source objecttarget - the target to fillprotected CityData extractCity(AddressModel source)
protected DistrictData extractDistrict(AddressModel source)
protected java.lang.String extractTitleName(TitleModel title)
title - Copyright © 2018 SAP SE. All Rights Reserved.