PhysicalAddress Class

Used to represent a physical address for a given contact.

Constructors

public PhysicalAddress( String type )
public PhysicalAddress( )
protected PhysicalAddress( org.w3c.dom.Node addressNode )

Methods

addStreet( String street ) returns void
Used to add a street address.
equals( Object obj ) returns boolean
Used to compare addresses. Performs a simple case insensitive string comparison.
getCity( ) returns String
getCountry( ) returns String
getPostalCode( ) returns String
getState( ) returns String
getStreets( ) returns String[]
Returns the street address as an array.
getType( ) returns String
Returns the type or category of address. Options include "Home", "Business", and "Other".
hashCode( ) returns int
isEmpty( ) returns boolean
Used to determine whether the address is empty. Returns true if all the address attributes are null.
setCity( String city ) returns void
setCountry( String country ) returns void
setPostalCode( String postalCode ) returns void
setState( String state ) returns void
setStreet( String street ) returns void
Used to set the street address. Multiple lines can be specified using a "\n" or "\r\n" delimitor.
setType( String type ) returns void
Used to set the type or category of address. Note that this field is required.
typeOptions include "Home", "Business", and "Other". Accepts minor varients including "Home Address", "Work", etc.
toString( ) returns String
Returns a human readable representation of this address.