Interface AddressFacade
- All Known Implementing Classes:
ChineseAddressFacade
public interface AddressFacade
Provide method related to address data
-
Method Summary
Modifier and TypeMethodDescriptiongetCitiesForRegion(String regionCode) Find cities by region codegetCityForIsocode(String isocode) Find city by its codegetDistrcitForIsocode(String isocode) Find district by its codegetDistrictsForCity(String cityCode) Find districts by city codebooleanisInvalidCellphone(String cellphone) Validate the specific cell phonebooleanvalidatePostcode(String postcode) Validate the specific postcode
-
Method Details
-
getCityForIsocode
Find city by its code- Parameters:
isocode- city code- Returns:
- city data
-
getDistrcitForIsocode
Find district by its code- Parameters:
isocode- district code- Returns:
- district data
-
getCitiesForRegion
Find cities by region code- Parameters:
regionCode- region Code- Returns:
- city list in the region
-
getDistrictsForCity
Find districts by city code- Parameters:
cityCode- city Code- Returns:
- district list in the city
-
validatePostcode
Validate the specific postcode- Parameters:
postcode- the specific postcode- Returns:
- validated result
-
isInvalidCellphone
Validate the specific cell phone- Parameters:
cellphone- the specific cell phone- Returns:
- validated result
-