com.funambol.common.pim.model.contact
Class Address

java.lang.Object
  extended by com.funambol.common.pim.model.contact.Address

public class Address
extends java.lang.Object

An object representing an address of a contact.


Constructor Summary
Address()
          Creates an empty address
 
Method Summary
 void explodeLabel(java.lang.String labelText)
          Explodes a label into its components, tries to infer which ones the corresponding address properties are and sets them.
 Property getCity()
          Returns the city of this address.
 Property getCountry()
          Returns the country of this address.
 Property getExtendedAddress()
          Returns the extended address of this address.
 Property getLabel()
          Returns the label of this address.
 Property getPostalCode()
          Returns the postal code of this address.
 Property getPostOfficeAddress()
          Returns the post office of this address.
 Property getRoomNumber()
          Returns the room number of this address.
 Property getState()
          Returns the state of this address.
 Property getStreet()
          Returns the street of this address.
 void setCity(Property city)
          Setter for property city.
 void setCountry(Property country)
          Setter for property country.
 void setExtendedAddress(Property extendedAddress)
          Setter for property extendedAddress.
 void setLabel(Property label)
          Setter for property label.
 void setPostalCode(Property postalCode)
          Setter for property postalCode.
 void setPostOfficeAddress(Property postOfficeAddress)
          Setter for property postOfficeAddress.
 void setRoomNumber(Property roomNumber)
          Setter for property roomNumber.
 void setState(Property state)
          Setter for property state.
 void setStreet(Property street)
          Setter for property street.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address()
Creates an empty address

Method Detail

getPostOfficeAddress

public Property getPostOfficeAddress()
Returns the post office of this address.

Returns:
the post office of this address

getRoomNumber

public Property getRoomNumber()
Returns the room number of this address.

Returns:
the room number of this address

getStreet

public Property getStreet()
Returns the street of this address.

Returns:
the street of this address

getCity

public Property getCity()
Returns the city of this address.

Returns:
the city of this address

getState

public Property getState()
Returns the state of this address.

Returns:
the state of this address

getPostalCode

public Property getPostalCode()
Returns the postal code of this address.

Returns:
the postal code of this address

getCountry

public Property getCountry()
Returns the country of this address.

Returns:
the country of this address

getLabel

public Property getLabel()
Returns the label of this address.

Returns:
the label of this address

getExtendedAddress

public Property getExtendedAddress()
Returns the extended address of this address.

Returns:
the extended address of this address

setPostOfficeAddress

public void setPostOfficeAddress(Property postOfficeAddress)
Setter for property postOfficeAddress.

Parameters:
postOfficeAddress - new value of property postOfficeAddress

setRoomNumber

public void setRoomNumber(Property roomNumber)
Setter for property roomNumber.

Parameters:
roomNumber - new value of property roomNumber

setStreet

public void setStreet(Property street)
Setter for property street.

Parameters:
street - new value of property street

setCity

public void setCity(Property city)
Setter for property city.

Parameters:
city - new value of property city

setState

public void setState(Property state)
Setter for property state.

Parameters:
state - new value of property state

setPostalCode

public void setPostalCode(Property postalCode)
Setter for property postalCode.

Parameters:
postalCode - new value of property postalCode

setCountry

public void setCountry(Property country)
Setter for property country.

Parameters:
country - new value of property country

setLabel

public void setLabel(Property label)
Setter for property label.

Parameters:
label - new value of property label

setExtendedAddress

public void setExtendedAddress(Property extendedAddress)
Setter for property extendedAddress.

Parameters:
extendedAddress - new value of property extendedAddress

explodeLabel

public void explodeLabel(java.lang.String labelText)
Explodes a label into its components, tries to infer which ones the corresponding address properties are and sets them. Typical label formats that are correctly exploded are: There are other formats that are correctly understood (but many are not), for instance the Street component is allowed to be split into several lines.

Parameters:
labelText - the label as a String object


Copyright © 2001-2009 Funambol.