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 Stringconvert(int lineNumber) Get the caption for the "area" line.intGet the number of extra lines.Get the caption for the Post Box.intWhat is the maximum length of the postal code?intgetState()static String[]protected booleanparse()voidsetPostalTown(String name) voidsetState(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:AddressWhat is the maximum length of the postal code?- Overrides:
getPostalCodeMaxLengthin classAddress- Returns:
- Maximum required length of the postal code.
-
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
-
getPostalTown
-
setPostalTown
-
getState
- Throws:
SOException
-
setState
public void setState(int state) -
getStateName
-
getStates
-
getPOBoxName
Description copied from class:AddressGet the caption for the Post Box.- Overrides:
getPOBoxNamein classAddress- Returns:
- Default implementation returns "Post Box".
-
getAreaCaption
Description copied from class:AddressGet the caption for the "area" line.- Overrides:
getAreaCaptionin classAddress- Returns:
- Default implementation returns "Area".
-