pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.util.model
Class AbstractExtendedAddress

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.component.util.model.AbstractExtendedAddress
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed
Direct Known Subclasses:
Representative, Retailer

@MappedSuperclass
public abstract class AbstractExtendedAddress
extends AbstractNamableEntity
implements INameable, JDOMable

A utility-class to derive from.

Version:
$Revision: 1577 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
AbstractExtendedAddress()
           
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          De-serialises the state of the AbstractExtendedAddress as a JDOM Element.
 java.lang.String getCity()
          Returns the city of the AbstractExtendedAddress.
 java.lang.String getContactPerson()
          Returns the contact person of the AbstractExtendedAddress.
 java.lang.String getCountry()
          Returns the country of the AbstractExtendedAddress.
 java.lang.String getEmail()
          Returns the email address of the AbstractExtendedAddress.
 java.lang.String getFaxNumber()
          Returns the fax number of the AbstractExtendedAddress.
 java.lang.String getMobilePhoneNumber()
          Returns the mobile phone number of the AbstractExtendedAddress.
 java.lang.String getPhoneNumber()
          Returns the phone number of the AbstractExtendedAddress.
 java.lang.String getPostalCode()
          Returns the postal code of the AbstractExtendedAddress.
 java.lang.String getState()
          Returns the state of the Retailer.
 java.lang.String getStreet()
          Returns the street of the AbstractExtendedAddress.
 java.lang.String getUrl()
          Returns the URL of the AbstractExtendedAddress.
 void setCity(java.lang.String c)
          Sets the city of the AbstractExtendedAddress.
 void setContactPerson(java.lang.String cp)
          Sets the contactPerson of the AbstractExtendedAddress.
 void setCountry(java.lang.String c)
          Sets the country of the AbstractExtendedAddress.
 void setEmail(java.lang.String e)
          Sets the email address of the AbstractExtendedAddress.
 void setFaxNumber(java.lang.String fn)
          Sets the faxNumber of the AbstractExtendedAddress.
 void setMobilePhoneNumber(java.lang.String mpn)
          Sets the mobile phone number of the AbstractExtendedAddress.
 void setPhoneNumber(java.lang.String pn)
          Sets the phoneNumber of the AbstractExtendedAddress.
 void setPostalCode(java.lang.String pc)
          Sets the postal code of the AbstractExtendedAddress.
 void setState(java.lang.String s)
          Sets the state of the Retailer.
 void setStreet(java.lang.String s)
          Sets the street of the AbstractExtendedAddress.
 void setUrl(java.lang.String u)
          Sets the URL of the AbstractExtendedAddress.
 net.sf.json.JSONObject toJSON()
          Returns a JSON-representation of the AbstractExtendedAddress .
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity
setName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.util.INameable
setName
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

AbstractExtendedAddress

public AbstractExtendedAddress()
Method Detail

getCountry

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

Returns:
the country of the AbstractExtendedAddress

setCountry

public final void setCountry(java.lang.String c)
Sets the country of the AbstractExtendedAddress.

Parameters:
c - the country to be set

getContactPerson

public final java.lang.String getContactPerson()
Returns the contact person of the AbstractExtendedAddress.

Returns:
the contact person of the AbstractExtendedAddress

setContactPerson

public final void setContactPerson(java.lang.String cp)
Sets the contactPerson of the AbstractExtendedAddress.

Parameters:
cp - the contact person to be set

getStreet

public final java.lang.String getStreet()
Returns the street of the AbstractExtendedAddress.

Returns:
the street of the AbstractExtendedAddress

setStreet

public final void setStreet(java.lang.String s)
Sets the street of the AbstractExtendedAddress.

Parameters:
s - the street to be set

getPostalCode

public final java.lang.String getPostalCode()
Returns the postal code of the AbstractExtendedAddress.

Returns:
the postal code of the AbstractExtendedAddress

setPostalCode

public final void setPostalCode(java.lang.String pc)
Sets the postal code of the AbstractExtendedAddress.

Parameters:
pc - the postal code to be set

getCity

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

Returns:
the city of the AbstractExtendedAddress

setCity

public final void setCity(java.lang.String c)
Sets the city of the AbstractExtendedAddress.

Parameters:
c - the city to be set

getPhoneNumber

public final java.lang.String getPhoneNumber()
Returns the phone number of the AbstractExtendedAddress.

Returns:
the phone number of the AbstractExtendedAddress

setPhoneNumber

public final void setPhoneNumber(java.lang.String pn)
Sets the phoneNumber of the AbstractExtendedAddress.

Parameters:
pn - the phone number to be set

getMobilePhoneNumber

public final java.lang.String getMobilePhoneNumber()
Returns the mobile phone number of the AbstractExtendedAddress.

Returns:
the mobile phone number of the AbstractExtendedAddress

setMobilePhoneNumber

public final void setMobilePhoneNumber(java.lang.String mpn)
Sets the mobile phone number of the AbstractExtendedAddress.

Parameters:
mpn - the mobile phone number to be set

getFaxNumber

public final java.lang.String getFaxNumber()
Returns the fax number of the AbstractExtendedAddress.

Returns:
the fax number of the AbstractExtendedAddress

setFaxNumber

public final void setFaxNumber(java.lang.String fn)
Sets the faxNumber of the AbstractExtendedAddress.

Parameters:
fn - the fax number to be set

getEmail

public final java.lang.String getEmail()
Returns the email address of the AbstractExtendedAddress.

Returns:
the email address of the AbstractExtendedAddress

setEmail

public final void setEmail(java.lang.String e)
Sets the email address of the AbstractExtendedAddress.

Parameters:
e - the email address to be set

getUrl

public final java.lang.String getUrl()
Returns the URL of the AbstractExtendedAddress.

Returns:
the URL of the AbstractExtendedAddress

setUrl

public final void setUrl(java.lang.String u)
Sets the URL of the AbstractExtendedAddress.

Parameters:
u - the URL to be set

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
De-serialises the state of the AbstractExtendedAddress as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the state of the AbstractExtendedAddress as a JDOM Element.

toJSON

public net.sf.json.JSONObject toJSON()
Returns a JSON-representation of the AbstractExtendedAddress .

Returns:
a JSONObject

getState

public final java.lang.String getState()
Returns the state of the Retailer.

Returns:
the state of the Retailer

setState

public final void setState(java.lang.String s)
Sets the state of the Retailer.

Parameters:
s - the state to be set