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 voidarrangeLines(ArrayList<String> lines) This method is invoked for arranging the address lines to be displayed.protected Stringconvert(int lineNumber) intstatic String[]getDistricts(int state) intGet the number of extra lines.Get the caption for the Postal Code.intWhat is the maximum length of the postal code?intgetState()static String[]booleanIs postal code mandatory?protected booleanparse()voidsetDistrict(int district) voidsetPostOfficeName(String name) voidsetState(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:AddressGet the number of extra lines.- Overrides:
getExtraLinesin 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:AddressGet the caption for the Postal Code.- Overrides:
getPostalCodeCaptionin classAddress- Returns:
- Default implementation returns "Postal Code".
-
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.
-
isPostalCodeMandatory
public boolean isPostalCodeMandatory()Description copied from class:AddressIs postal code mandatory?- Overrides:
isPostalCodeMandatoryin classAddress- Returns:
- True/false.
-
arrangeLines
Description copied from class:AddressThis method is invoked for arranging the address lines to be displayed.- Overrides:
arrangeLinesin classAddress- Parameters:
lines- Address lines.
-