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