Package com.storedobject.common
Class GBAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.GBAddress
-
Method Summary
Modifier and TypeMethodDescriptionGet the caption for the "area" line.int
Get the number of extra lines.Get the caption for the Postal Code.int
What is the maximum length of the postal code?int
What is the minimum length of the postal code?boolean
Whether the postal code is numeric or not.void
setPostTown
(String postTown) Methods inherited from class com.storedobject.common.Address
arrangeLines, check, check, copy, create, create, encode, getApartmentName, getAreaName, getBuildingName, getCountry, getHouseName, getLine, getOfficeName, getPOBox, getPOBoxName, getPostalCode, getStreetName, getType, getTypeValue, getTypeValue, getTypeValues, getVillaName, isPOBoxAddress, isPostalCodeAddress, isPostalCodeMandatory, isValid, poBoxPrefix, poBoxSuffix, setApartmentName, setAreaName, setBuildingName, setHouseName, setLine, setOfficeName, setPOBox, setPostalCode, setStreetName, setType, setVillaName, toString, toString, validate
-
Method Details
-
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.
-
getPostalCodeMinLength
public int getPostalCodeMinLength()Description copied from class:Address
What is the minimum length of the postal code?- Overrides:
getPostalCodeMinLength
in classAddress
- Returns:
- Minimum 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.
-
getPostTown
-
setPostTown
-
getPostalCodeCaption
Description copied from class:Address
Get the caption for the Postal Code.- Overrides:
getPostalCodeCaption
in classAddress
- Returns:
- Default implementation returns "Postal Code".
-
isNumericPostalCode
public boolean isNumericPostalCode()Description copied from class:Address
Whether the postal code is numeric or not.- Overrides:
isNumericPostalCode
in classAddress
- Returns:
- True if numeric. False if alpha-numeric.
-
getAreaCaption
Description copied from class:Address
Get the caption for the "area" line.- Overrides:
getAreaCaption
in classAddress
- Returns:
- Default implementation returns "Area".
-