Package com.storedobject.common
Class INAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.INAddress
IN Address
line[0]: Post Office
line[1]: District code
line[2]: State code
line[0]: Post Office
line[1]: District code
line[2]: State code
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
arrangeLines
(ArrayList<String> lines) This method is invoked for arranging the address lines to be displayed.protected String
convert
(int lineNumber) int
static String[]
getDistricts
(int state) int
Get the number of extra lines.Get the caption for the Postal Code.int
What is the maximum length of the postal code?int
getState()
static String[]
boolean
Is postal code mandatory?protected boolean
parse()
void
setDistrict
(int district) void
setPostOfficeName
(String name) void
setState
(int state) Methods inherited from class com.storedobject.common.Address
check, check, copy, create, create, encode, getApartmentName, getAreaCaption, getAreaName, getBuildingName, getCountry, getHouseName, getLine, getOfficeName, getPOBox, getPOBoxName, getPostalCode, 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
-
parse
- Throws:
SOException
-
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.
-
convert
- Throws:
SOException
-
getPostOfficeName
-
setPostOfficeName
-
getState
- Throws:
SOException
-
setState
public void setState(int state) -
getStateName
-
getDistrict
- Throws:
SOException
-
setDistrict
public void setDistrict(int district) -
getDistrictName
- Throws:
SOException
-
getStates
-
getDistricts
-
getPostalCodeCaption
Description copied from class:Address
Get the caption for the Postal Code.- Overrides:
getPostalCodeCaption
in classAddress
- Returns:
- Default implementation returns "Postal Code".
-
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.
-
isPostalCodeMandatory
public boolean isPostalCodeMandatory()Description copied from class:Address
Is postal code mandatory?- Overrides:
isPostalCodeMandatory
in classAddress
- Returns:
- True/false.
-
arrangeLines
Description copied from class:Address
This method is invoked for arranging the address lines to be displayed.- Overrides:
arrangeLines
in classAddress
- Parameters:
lines
- Address lines.
-