com.iternum.swlink.examples.profile
Class Address

java.lang.Object
  extended bycom.iternum.swlink.examples.profile.Address

public class Address
extends java.lang.Object

Author:
Karl F. Banke A generic address

Field Summary
static java.lang.String ADDRESS
          Property change constant.
static java.lang.String ADDRESS_CONT
          Property change constant.
static java.lang.String CITY
          Property change constant.
static java.lang.String COMPANY
          Property change constant.
static java.lang.String COUNTRY
          Property change constant.
static java.lang.String POSTCODE
          Property change constant.
 
Constructor Summary
Address()
          Create an empty address.
Address(java.lang.String pCompany, java.lang.String pAddress, java.lang.String pAddressContinuation, java.lang.String pCity, java.lang.String pPostcode, java.lang.String pCountry)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pListener)
          Adds a PropertyChangeListener to the model.
 java.lang.Object clone()
           
 java.lang.String getAddress()
           
 java.lang.String getAddressContinuation()
           
 java.lang.String getCity()
           
 java.lang.String getCompany()
           
 java.lang.String getCountry()
           
 java.lang.String getPostcode()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pListener)
          Remove a PropertyChangeListener from the model.
 void setAddress(java.lang.String pAddress)
           
 void setAddressContinuation(java.lang.String pAddressContinuation)
           
 void setCity(java.lang.String pCity)
           
 void setCompany(java.lang.String pCompany)
           
 void setCountry(java.lang.String pCountry)
           
 void setPostcode(java.lang.String pPostcode)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDRESS

public static final java.lang.String ADDRESS
Property change constant.

See Also:
Constant Field Values

ADDRESS_CONT

public static final java.lang.String ADDRESS_CONT
Property change constant.

See Also:
Constant Field Values

COMPANY

public static final java.lang.String COMPANY
Property change constant.

See Also:
Constant Field Values

CITY

public static final java.lang.String CITY
Property change constant.

See Also:
Constant Field Values

POSTCODE

public static final java.lang.String POSTCODE
Property change constant.

See Also:
Constant Field Values

COUNTRY

public static final java.lang.String COUNTRY
Property change constant.

See Also:
Constant Field Values
Constructor Detail

Address

public Address()
Create an empty address.


Address

public Address(java.lang.String pCompany,
               java.lang.String pAddress,
               java.lang.String pAddressContinuation,
               java.lang.String pCity,
               java.lang.String pPostcode,
               java.lang.String pCountry)
Parameters:
pCompany - The company
pAddress - The address
pAddressContinuation - The adress continuation
pCity - The city
pPostcode - The postcode
pCountry - The country
Method Detail

clone

public java.lang.Object clone()
Returns:
A clone of this object

getAddress

public final java.lang.String getAddress()
Returns:
Returns the address.

setAddress

public final void setAddress(java.lang.String pAddress)
Parameters:
pAddress - The address to set.

getAddressContinuation

public final java.lang.String getAddressContinuation()
Returns:
Returns the addressContinuation.

setAddressContinuation

public final void setAddressContinuation(java.lang.String pAddressContinuation)
Parameters:
pAddressContinuation - The addressContinuation to set.

getCity

public final java.lang.String getCity()
Returns:
Returns the city.

setCity

public final void setCity(java.lang.String pCity)
Parameters:
pCity - The city to set.

getCompany

public final java.lang.String getCompany()
Returns:
Returns the company.

setCompany

public final void setCompany(java.lang.String pCompany)
Parameters:
pCompany - The company to set.

getCountry

public final java.lang.String getCountry()
Returns:
Returns the country.

setCountry

public final void setCountry(java.lang.String pCountry)
Parameters:
pCountry - The country to set.

getPostcode

public final java.lang.String getPostcode()
Returns:
Returns the postcode.

setPostcode

public final void setPostcode(java.lang.String pPostcode)
Parameters:
pPostcode - The postcode to set.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pListener)
Adds a PropertyChangeListener to the model.

Parameters:
pListener - The listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pListener)
Remove a PropertyChangeListener from the model.

Parameters:
pListener - The listener