Package com.storedobject.common
Class PKAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.PKAddress
IN Address
line[0]: Place name within the district
line[1]: District code
line[2]: Province code
line[0]: Place name within the district
line[1]: District code
line[2]: Province code
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionintstatic String[]getDistricts(int state) intGet the number of extra lines.intWhat is the maximum length of the postal code?intstatic String[]booleanIs postal code mandatory?voidsetDistrict(int district) voidsetPlaceName(String placeName) voidsetProvince(int province) Methods inherited from class com.storedobject.common.Address
arrangeLines, check, check, copy, create, create, encode, getApartmentName, getAreaCaption, getAreaName, getBuildingName, getCountry, getHouseName, getLine, getOfficeName, getPOBox, getPOBoxName, getPostalCode, getPostalCodeCaption, getPostalCodeMinLength, getStreetName, getType, getTypeValue, getTypeValue, getTypeValues, getVillaName, isNumericPostalCode, isPOBoxAddress, isPostalCodeAddress, isValid, poBoxPrefix, poBoxSuffix, setApartmentName, setAreaName, setBuildingName, setHouseName, setLine, setOfficeName, setPOBox, setPostalCode, setStreetName, setType, setVillaName, toString, toString, validate
-
Method Details
-
getExtraLines
public int getExtraLines()Description copied from class:AddressGet the number of extra lines.- Overrides:
getExtraLinesin classAddress- Returns:
- Number of extra lines in the address.
-
getPlaceName
-
setPlaceName
-
getProvince
- Throws:
SOException
-
setProvince
public void setProvince(int province) -
getProvinceName
-
getDistrict
- Throws:
SOException
-
setDistrict
public void setDistrict(int district) -
getDistrictName
- Throws:
SOException
-
getProvinces
-
getDistricts
-
isPostalCodeMandatory
public boolean isPostalCodeMandatory()Description copied from class:AddressIs postal code mandatory?- Overrides:
isPostalCodeMandatoryin classAddress- Returns:
- True/false.
-
getPostalCodeMaxLength
public int getPostalCodeMaxLength()Description copied from class:AddressWhat is the maximum length of the postal code?- Overrides:
getPostalCodeMaxLengthin classAddress- Returns:
- Maximum required length of the postal code.
-