|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--postalcode.PostalCode | +--postalcode.CanadianPostalCode
This class is a subclass of PostalCode used to deal with Canadian postal codes.
Fields inherited from class postalcode.PostalCode |
code,
destination,
hasBeenValidated,
isValid |
Constructor Summary | |
CanadianPostalCode(java.lang.String code)
Constructs a Canadian postal code object. |
Method Summary | |
private java.lang.String |
computeDestination()
This method will return the destination of the postal code. |
java.lang.String |
getCountry()
Returns the country of origin of the code. |
protected void |
validate()
This method will verifiy the validity of 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 CanadianPostalCode(java.lang.String code) throws PostalCodeException
code
- The code to be analysed.Method Detail |
public java.lang.String getCountry()
protected void validate() throws PostalCodeException
private java.lang.String computeDestination() throws PostalCodeException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |