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.intGet the number of extra lines.Get the caption for the Postal Code.intWhat is the maximum length of the postal code?intWhat is the minimum length of the postal code?intgetState()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.booleanWhether the postal code is numeric or not.booleanIs postal code mandatory?voidsetState(int state) Set the state.voidSet 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:AddressGet the number of extra lines.- Overrides:
getExtraLinesin classAddress- Returns:
- Number of extra lines in the address.
-
getAreaCaption
Description copied from class:AddressGet the caption for the "area" line.- Overrides:
getAreaCaptionin 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:AddressGet the caption for the Postal Code.- Overrides:
getPostalCodeCaptionin classAddress- Returns:
- Default implementation returns "Postal Code".
-
getPostalCodeMinLength
public int getPostalCodeMinLength()Description copied from class:AddressWhat is the minimum length of the postal code?- Overrides:
getPostalCodeMinLengthin classAddress- Returns:
- Minimum required length of the postal code.
-
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.
-
isPostalCodeMandatory
public boolean isPostalCodeMandatory()Description copied from class:AddressIs postal code mandatory?- Overrides:
isPostalCodeMandatoryin classAddress- Returns:
- True/false.
-
isNumericPostalCode
public boolean isNumericPostalCode()Description copied from class:AddressWhether the postal code is numeric or not.- Overrides:
isNumericPostalCodein 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
-