Package com.storedobject.common
Class SGAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.XXAddress
com.storedobject.common.SGAddress
SG Address
line[0]: Post office (required if Post Box is specified)
line[0]: Post office (required if Post Box is specified)
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
convert
(int lineNumber) int
Get the number of extra lines.getLineCaption
(int index) Get the caption for the extra line.int
What is the maximum length of the postal code?Prefix to be used when printing the PO box.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, isPostalCodeMandatory, isValid, 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 classXXAddress
- Returns:
- Number of extra lines in the address.
-
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.
-
convert
- Throws:
SOException
-
poBoxPrefix
Description copied from class:Address
Prefix to be used when printing the PO box.- Overrides:
poBoxPrefix
in classAddress
- Returns:
- By default,
Address.getPOBoxName()
is returned.
-
getLineCaption
Description copied from class:XXAddress
Get the caption for the extra line. If returnednull
, the line value will be ignored by the UI.- Overrides:
getLineCaption
in classXXAddress
- Parameters:
index
- Index.- Returns:
- Caption for the extra line.
-