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 TypeMethodDescriptionint
static String[]
getDistricts
(int state) int
Get the number of extra lines.int
What is the maximum length of the postal code?int
static String[]
boolean
Is postal code mandatory?void
setDistrict
(int district) void
setPlaceName
(String placeName) void
setProvince
(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:Address
Get the number of extra lines.- Overrides:
getExtraLines
in 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:Address
Is postal code mandatory?- Overrides:
isPostalCodeMandatory
in classAddress
- Returns:
- True/false.
-
getPostalCodeMaxLength
public int getPostalCodeMaxLength()Description copied from class:Address
What is the maximum length of the postal code?- Overrides:
getPostalCodeMaxLength
in classAddress
- Returns:
- Maximum required length of the postal code.
-