Oracle

com.compoze.collab.groupware
Class PostalAddress

java.lang.Object
  extended by com.compoze.collab.groupware.PostalAddress

public class PostalAddress
extends java.lang.Object

This class is a wrapper for postal address representations.


Constructor Summary
PostalAddress(java.lang.String sStreet, java.lang.String sCity, java.lang.String sState, java.lang.String sCountry, java.lang.String sPostalCode)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests equality with another address.
 java.lang.String getCity()
          Gets the city.
 java.lang.String getCountry()
          Gets the country.
 java.lang.String getPostalCode()
          Gets the postal code.
 java.lang.String getState()
          Gets the state or province.
 java.lang.String getStreet()
          Gets the street.
 void setCity(java.lang.String sCity)
          Sets the city name.
 void setCountry(java.lang.String sCountry)
          Sets the country.
 void setPostalCode(java.lang.String sPostalCode)
          Sets the postal code.
 void setState(java.lang.String sState)
          Sets the state or province.
 void setStreet(java.lang.String sStreet)
          Sets the street address.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostalAddress

public PostalAddress(java.lang.String sStreet,
                     java.lang.String sCity,
                     java.lang.String sState,
                     java.lang.String sCountry,
                     java.lang.String sPostalCode)
Constructor.

Parameters:
sStreet - the street address
sCity - the city
sState - the state or province
sCountry - the country
Method Detail

setCity

public void setCity(java.lang.String sCity)
Sets the city name.

Parameters:
sCity - the city name

getCity

public java.lang.String getCity()
Gets the city.

Returns:
the city name
See Also:
setCity(String)

setCountry

public void setCountry(java.lang.String sCountry)
Sets the country.

Parameters:
sCountry - the country

getCountry

public java.lang.String getCountry()
Gets the country.

Returns:
the country
See Also:
setCountry(String)

setState

public void setState(java.lang.String sState)
Sets the state or province.

Parameters:
sState - the state or province

getState

public java.lang.String getState()
Gets the state or province.

Returns:
the state or province
See Also:
setState(String)

setStreet

public void setStreet(java.lang.String sStreet)
Sets the street address.

Parameters:
sStreet - the street address

getStreet

public java.lang.String getStreet()
Gets the street.

Returns:
the street address
See Also:
setStreet(String)

setPostalCode

public void setPostalCode(java.lang.String sPostalCode)
Sets the postal code.

Parameters:
sPostalCode - the postal code

getPostalCode

public java.lang.String getPostalCode()
Gets the postal code.

Returns:
the postal code
See Also:
setPostalCode(String)

equals

public boolean equals(java.lang.Object obj)
Tests equality with another address.

Overrides:
equals in class java.lang.Object

Oracle

Copyright ©1999-2008 Oracle All rights reserved.