Package com.storedobject.common
Class USAddress
java.lang.Object
com.storedobject.common.Address
com.storedobject.common.USAddress
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the caption for the "area" line.getCity()
Retrieves the city name for this USAddress.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?int
getState()
Get the state index.Retrieves the state code of the given USAddress.Returns the name of the state for this USAddress.Get the name of the states.Retrieves the ZIP code for this USAddress.boolean
Whether the postal code is numeric or not.boolean
Is postal code mandatory?void
setState
(int state) Set the state.void
Set the state.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, isValid, poBoxPrefix, poBoxSuffix, setApartmentName, setAreaName, setBuildingName, setHouseName, setLine, setOfficeName, setPOBox, setPostalCode, setStreetName, setType, setVillaName, toString, toString, validate
-
Constructor Details
-
USAddress
public USAddress()
-
-
Method Details
-
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.
-
getAreaCaption
Description copied from class:Address
Get the caption for the "area" line.- Overrides:
getAreaCaption
in classAddress
- Returns:
- Default implementation returns "Area".
-
setState
public void setState(int state) Set the state.- Parameters:
state
- Index values of the state.
-
setState
-
getState
Get the state index.- Returns:
- Index value of the state.
- Throws:
SOException
- If state index is currently invalid.
-
getStates
-
getPostalCodeCaption
Description copied from class:Address
Get the caption for the Postal Code.- Overrides:
getPostalCodeCaption
in classAddress
- Returns:
- Default implementation returns "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.
-
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.
-
isPostalCodeMandatory
public boolean isPostalCodeMandatory()Description copied from class:Address
Is postal code mandatory?- Overrides:
isPostalCodeMandatory
in classAddress
- Returns:
- True/false.
-
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.
-
getStateName
Returns the name of the state for this USAddress.- Returns:
- The name of the state.
-
getStateCode
Retrieves the state code of the given USAddress.- Returns:
- The two-character state code of the address. Returns an empty string if no ZIP is available.
-
getZIPCode
-
getCity
-