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 Representative

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
                  extended by org.torweg.pulse.component.util.model.Representative
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed

@Entity
public class Representative
extends AbstractExtendedAddress

Represents a Representative as used by the utility-component "representative".

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

Constructor Summary
Representative()
          The default Constructor.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          De-serialises the state of the Representative as a JDOM Element.
 java.lang.String getAddressAffix()
          Returns the address affix of the Representative or null.
 java.lang.String getNameAffix()
          Returns the name affix of the Representative or null.
 java.lang.String getRepresentsCountry()
          Returns the country represented by the Representative.
 java.lang.String getRepresentsRegion()
          Returns the region where the country represented by the Representative is located.
 java.lang.String getRepresentsState()
          Returns the state represented by the Representative.
 void setAddressAffix(java.lang.String aa)
          Sets the address affix of the Representative.
 void setNameAffix(java.lang.String na)
          Sets the name affix of the Representative.
 void setRepresentsCountry(java.lang.String c)
          Sets the country represented by the Representative.
 void setRepresentsRegion(java.lang.String r)
          Sets the region where the country represented by the Representative is located.
 void setRepresentsState(java.lang.String s)
          Sets the state represented by the Representative.
 net.sf.json.JSONObject toJSON()
          Returns a JSON-representation of the Representative.
 
Methods inherited from class org.torweg.pulse.component.util.model.AbstractExtendedAddress
getCity, getContactPerson, getCountry, getEmail, getFaxNumber, getMobilePhoneNumber, getPhoneNumber, getPostalCode, getState, getStreet, getUrl, setCity, setContactPerson, setCountry, setEmail, setFaxNumber, setMobilePhoneNumber, setPhoneNumber, setPostalCode, setState, setStreet, setUrl
 
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

Representative

public Representative()
The default Constructor.

Method Detail

getRepresentsRegion

public final java.lang.String getRepresentsRegion()
Returns the region where the country represented by the Representative is located.

Returns:
the region where the country represented by the Representative is located.

setRepresentsRegion

public final void setRepresentsRegion(java.lang.String r)
Sets the region where the country represented by the Representative is located.

Parameters:
r - the represented country's region to be set.

getRepresentsCountry

public final java.lang.String getRepresentsCountry()
Returns the country represented by the Representative.

Returns:
the country represented by the Representative.

setRepresentsCountry

public final void setRepresentsCountry(java.lang.String c)
Sets the country represented by the Representative.

Parameters:
c - the represented country to be set.

getRepresentsState

public final java.lang.String getRepresentsState()
Returns the state represented by the Representative.

Returns:
the state represented by the Representative.

setRepresentsState

public final void setRepresentsState(java.lang.String s)
Sets the state represented by the Representative.

Parameters:
s - the represented state to be set.

getNameAffix

public final java.lang.String getNameAffix()
Returns the name affix of the Representative or null.

Returns:
the name affix of the Representative or null.

setNameAffix

public final void setNameAffix(java.lang.String na)
Sets the name affix of the Representative.

Parameters:
na - the name affix to be set.

getAddressAffix

public final java.lang.String getAddressAffix()
Returns the address affix of the Representative or null.

Returns:
the address affix of the Representative or null.

setAddressAffix

public final void setAddressAffix(java.lang.String aa)
Sets the address affix of the Representative.

Parameters:
aa - the address affix to be set.

deserializeToJDOM

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

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

toJSON

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

Overrides:
toJSON in class AbstractExtendedAddress
Returns:
a JSONObject