ch.claudio.contactdb.data
Class Place

java.lang.Object
  extended by ch.claudio.contactdb.data.Place

public class Place
extends java.lang.Object

Version:
$Id: Place.java 181 2007-04-18 14:53:43Z claudio $
Author:
Claudio Nieder

Constructor Summary
Place(java.lang.String country, java.lang.String zip, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCountryCode()
           
 java.lang.String getPlaceName()
           
 java.lang.String getZipCode()
           
 int hashCode()
           
 void setCountryCode(java.lang.String country)
           
 void setPlaceName(java.lang.String name)
           
 void setZipCode(java.lang.String zip)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Place

public Place(java.lang.String country,
             java.lang.String zip,
             java.lang.String name)
      throws java.lang.IllegalArgumentException
Parameters:
country - Two character iso3199 country code e.g. CH
zip - zip code, optional e.g. 8610
name - name of the place e.g.Uster
Throws:
java.lang.IllegalArgumentException
Method Detail

getCountryCode

public java.lang.String getCountryCode()
Returns:
Returns the country.

setCountryCode

public void setCountryCode(java.lang.String country)
                    throws java.lang.IllegalArgumentException
Parameters:
country - Two character iso3199 country code e.g. CH
Throws:
java.lang.IllegalArgumentException - for unexistant country code

getPlaceName

public java.lang.String getPlaceName()
Returns:
Returns the name of the place.

setPlaceName

public void setPlaceName(java.lang.String name)
Parameters:
name - name of the place e.g.Uster

getZipCode

public java.lang.String getZipCode()
Returns:
Returns the zip code.

setZipCode

public void setZipCode(java.lang.String zip)
Parameters:
zip - zip code, optional e.g. 8610

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)