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 Stringconvert(int lineNumber) intGet the number of extra lines.getLineCaption(int index) Get the caption for the extra line.intWhat 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:AddressGet the number of extra lines.- Overrides:
getExtraLinesin classXXAddress- Returns:
- Number of extra lines in the address.
-
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.
-
convert
- Throws:
SOException
-
poBoxPrefix
Description copied from class:AddressPrefix to be used when printing the PO box.- Overrides:
poBoxPrefixin classAddress- Returns:
- By default,
Address.getPOBoxName()is returned.
-
getLineCaption
Description copied from class:XXAddressGet the caption for the extra line. If returnednull, the line value will be ignored by the UI.- Overrides:
getLineCaptionin classXXAddress- Parameters:
index- Index.- Returns:
- Caption for the extra line.
-