Package com.storedobject.common
Class MYAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.MYAddress
MY Address
line[0]: Postal town
line[1]: State code
line[0]: Postal town
line[1]: State code
- Author:
- Syam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected String
convert
(int lineNumber) Get the caption for the "area" line.int
Get the number of extra lines.Get the caption for the Post Box.int
What is the maximum length of the postal code?int
getState()
static String[]
protected boolean
parse()
void
setPostalTown
(String name) void
setState
(int state) Methods inherited from class com.storedobject.common.Address
arrangeLines, check, check, copy, create, create, encode, getApartmentName, getAreaName, getBuildingName, getCountry, getHouseName, getLine, getOfficeName, getPOBox, getPostalCode, getPostalCodeCaption, getPostalCodeMinLength, getStreetName, getType, getTypeValue, getTypeValue, getTypeValues, getVillaName, isNumericPostalCode, isPOBoxAddress, isPostalCodeAddress, isPostalCodeMandatory, isValid, poBoxPrefix, poBoxSuffix, setApartmentName, setAreaName, setBuildingName, setHouseName, setLine, setOfficeName, setPOBox, setPostalCode, setStreetName, setType, setVillaName, toString, toString, validate
-
Field Details
-
states
-
-
Method Details
-
parse
- Throws:
SOException
-
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.
-
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
-
getPostalTown
-
setPostalTown
-
getState
- Throws:
SOException
-
setState
public void setState(int state) -
getStateName
-
getStates
-
getPOBoxName
Description copied from class:Address
Get the caption for the Post Box.- Overrides:
getPOBoxName
in classAddress
- Returns:
- Default implementation returns "Post Box".
-
getAreaCaption
Description copied from class:Address
Get the caption for the "area" line.- Overrides:
getAreaCaption
in classAddress
- Returns:
- Default implementation returns "Area".
-