Compoze Software, Inc.

com.compoze.exchange.activedirectory
Class Address


java.lang.Object

  |

  +--com.compoze.exchange.activedirectory.Address


public class Address
extends java.lang.Object

This class represents a street address. The address is assembled as follows:

 [street address] [po box] [locality] [region/state] [postal code] [country]
 


Constructor Summary
Address()
          Constructor.
Address(java.lang.String sStreetAddress, java.lang.String sPostOfficeBox, java.lang.String sLocality, java.lang.String sRegion, java.lang.String sPostalCode, java.lang.String sCountry)
          Constructor.
 
Method Summary
 java.lang.String getCountry()
          Gets the country.
 java.lang.String getLocality()
          Gets the locality (town/city).
 java.lang.String getPostalCode()
          Gets the postal code (zip code).
 java.lang.String getPostOfficeBox()
          Gets the PO Box number..
 java.lang.String getRegion()
          Gets the region (state/prefecture).
 java.lang.String getStreetAddress()
          Gets the street address.
 void setCountry(java.lang.String sCountry)
          Sets the country.
 void setLocality(java.lang.String sLocality)
          Sets the locality (town/city).
 void setPostalCode(java.lang.String sPostalCode)
          Sets the postal code (zip code).
 void setPostOfficeBox(java.lang.String sPOBox)
          Sets the PO box number.
 void setRegion(java.lang.String sRegion)
          Sets the region (state/prefecture).
 void setStreetAddress(java.lang.String sStreetAddress)
          Sets the street address.
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address


public Address()
Constructor.

Address


public Address(java.lang.String sStreetAddress,
               java.lang.String sPostOfficeBox,
               java.lang.String sLocality,
               java.lang.String sRegion,
               java.lang.String sPostalCode,
               java.lang.String sCountry)
Constructor.
Parameters:
sStreetAddress - the street address
sLocality - the locality, or city/town
sRegion - the region, or state/province
sPostalCode - the postal, or zip code
sCountry - the country
Method Detail

setStreetAddress


public void setStreetAddress(java.lang.String sStreetAddress)
Sets the street address.
Parameters:
sStreetAddress - the street address

getStreetAddress


public java.lang.String getStreetAddress()
Gets the street address.
Returns:
the street address

setPostOfficeBox


public void setPostOfficeBox(java.lang.String sPOBox)
Sets the PO box number.
Parameters:
sPostOfficBox - the street address

getPostOfficeBox


public java.lang.String getPostOfficeBox()
Gets the PO Box number..
Returns:
the street address

setLocality


public void setLocality(java.lang.String sLocality)
Sets the locality (town/city).
Parameters:
sLocality - the locality, or city/town

getLocality


public java.lang.String getLocality()
Gets the locality (town/city).
Returns:
the locality, or city/town

setRegion


public void setRegion(java.lang.String sRegion)
Sets the region (state/prefecture).
Parameters:
sRegion - the region, or state/province

getRegion


public java.lang.String getRegion()
Gets the region (state/prefecture).
Returns:
the region, or state/province

setPostalCode


public void setPostalCode(java.lang.String sPostalCode)
Sets the postal code (zip code).
Parameters:
sPostalCode - the postal, or zip code

getPostalCode


public java.lang.String getPostalCode()
Gets the postal code (zip code).
Returns:
the postal, or zip code

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

toString


public java.lang.String toString()
Returns the string representation of this object.
Overrides:
toString in class java.lang.Object
Returns:
the string representation of this object

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.