|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--postalcode.PostalCode | +--postalcode.USZipCode
This class is a subclass of PostalCode used to handle and verify US ZIP codes.
Fields inherited from class postalcode.PostalCode |
code,
destination,
hasBeenValidated,
isValid |
Constructor Summary | |
USZipCode(java.lang.String code)
Constructs a ZIP Code type object. |
Method Summary | |
private java.lang.String |
computeDestination()
This method will return a String indicating the location of the destination address. |
java.lang.String |
getCountry()
This method returns the country of origin of this code. |
protected void |
validate()
This method validates the postal code. |
Methods inherited from class postalcode.PostalCode |
getCode,
getDestination,
isValid,
setDestination,
throwException,
toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public USZipCode(java.lang.String code) throws PostalCodeException
code
- The postal code to be analysed.Method Detail |
public java.lang.String getCountry()
protected void validate() throws PostalCodeException
private java.lang.String computeDestination()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |