org.jscience.geography
Class Address

java.lang.Object
  extended by org.jscience.geography.Address
All Implemented Interfaces:
Named, Positioned

public class Address
extends java.lang.Object
implements Named, Positioned

A class representing all the informations needed to reach a place.


Constructor Summary
Address(java.lang.String fullName, java.lang.String address, java.lang.String city, java.lang.String zipCode, Country country)
          Creates a new Address object.
Address(java.lang.String fullName, java.lang.String address1, java.lang.String address2, java.lang.String city, java.lang.String zipCode, Country country)
          Creates a new Address object.
Address(java.lang.String fullName, java.lang.String address1, java.lang.String address2, java.lang.String city, java.lang.String state, java.lang.String zipCode, Country country)
          Creates a new Address object.
Address(java.lang.String fullName, java.lang.String company, java.lang.String address1, java.lang.String address2, java.lang.String city, java.lang.String state, java.lang.String zipCode, Country country)
          Creates a new Address object.
 
Method Summary
 java.lang.String getAddress1()
          DOCUMENT ME!
 java.lang.String getAddress2()
          DOCUMENT ME!
 java.lang.String getCity()
          DOCUMENT ME!
 java.lang.String getCompany()
          DOCUMENT ME!
 Country getCountry()
          DOCUMENT ME!
 java.lang.String getCountryName()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.lang.String getPhoneNumber()
          DOCUMENT ME!
 Place getPosition()
          DOCUMENT ME!
 java.lang.String getState()
          DOCUMENT ME!
 java.lang.String getZipCode()
          DOCUMENT ME!
 void setPhoneNumber(java.lang.String phone)
          DOCUMENT ME!
 void setPosition(Place place)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address(java.lang.String fullName,
               java.lang.String address,
               java.lang.String city,
               java.lang.String zipCode,
               Country country)
Creates a new Address object.

Parameters:
fullName - DOCUMENT ME!
address - DOCUMENT ME!
city - DOCUMENT ME!
zipCode - DOCUMENT ME!
country - DOCUMENT ME!

Address

public Address(java.lang.String fullName,
               java.lang.String address1,
               java.lang.String address2,
               java.lang.String city,
               java.lang.String zipCode,
               Country country)
Creates a new Address object.

Parameters:
fullName - DOCUMENT ME!
address1 - DOCUMENT ME!
address2 - DOCUMENT ME!
city - DOCUMENT ME!
zipCode - DOCUMENT ME!
country - DOCUMENT ME!

Address

public Address(java.lang.String fullName,
               java.lang.String address1,
               java.lang.String address2,
               java.lang.String city,
               java.lang.String state,
               java.lang.String zipCode,
               Country country)
Creates a new Address object.

Parameters:
fullName - DOCUMENT ME!
address1 - DOCUMENT ME!
address2 - DOCUMENT ME!
city - DOCUMENT ME!
state - DOCUMENT ME!
zipCode - DOCUMENT ME!
country - DOCUMENT ME!

Address

public Address(java.lang.String fullName,
               java.lang.String company,
               java.lang.String address1,
               java.lang.String address2,
               java.lang.String city,
               java.lang.String state,
               java.lang.String zipCode,
               Country country)
Creates a new Address object.

Parameters:
fullName - DOCUMENT ME!
company - DOCUMENT ME!
address1 - DOCUMENT ME!
address2 - DOCUMENT ME!
city - DOCUMENT ME!
state - DOCUMENT ME!
zipCode - DOCUMENT ME!
country - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getCompany

public java.lang.String getCompany()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAddress1

public java.lang.String getAddress1()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAddress2

public java.lang.String getAddress2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCity

public java.lang.String getCity()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getState

public java.lang.String getState()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getZipCode

public java.lang.String getZipCode()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCountry

public Country getCountry()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCountryName

public java.lang.String getCountryName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPhoneNumber

public java.lang.String getPhoneNumber()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPhoneNumber

public void setPhoneNumber(java.lang.String phone)
DOCUMENT ME!

Parameters:
phone - DOCUMENT ME!

getPosition

public Place getPosition()
DOCUMENT ME!

Specified by:
getPosition in interface Positioned
Returns:
DOCUMENT ME!

setPosition

public void setPosition(Place place)
DOCUMENT ME!

Parameters:
place - DOCUMENT ME!