com.opnworks.cbo
Class Party

java.lang.Object
  extended bycom.opnworks.cbo.Party
All Implemented Interfaces:
INamedObject, IParty, IPersistent, ISharedObject, java.io.Serializable
Direct Known Subclasses:
Organization, Person

public abstract class Party
extends java.lang.Object
implements INamedObject, IParty, ISharedObject

Author:
laurent
See Also:
Serialized Form

Constructor Summary
Party()
           
Party(java.lang.String name, java.lang.String number, java.lang.String description, java.lang.String guid)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Description of the Method
 Contact getContact(int type)
           
 Contact getContact(int type, boolean create)
           
 java.util.Set getContacts()
           
 java.lang.String getDescription()
           
 java.lang.String getGuid()
          Gets the Guid attribute of the Party object
 java.lang.Long getId()
          Gets the Id attribute of the Party object
 java.lang.String getName()
          Gets the Name attribute of the INamedObject object
 java.lang.String getNumber()
           
 IStreetAddress getStreetAddress()
           
 int getVersion()
           
 int hashCode()
          Description of the Method
 void removeContact(Contact contact)
           
 void setContacts(java.util.Set contacts)
           
 void setDescription(java.lang.String string)
           
 void setGuid(java.lang.String guid)
          Sets the Guid attribute of the Party object
 void setId(java.lang.Long id)
          Sets the Id attribute of the IPersistent object
 void setName(java.lang.String string)
           
 void setNumber(java.lang.String string)
           
 void setStreetAddress(IStreetAddress address)
           
 void setVersion(int i)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Party

public Party()

Party

public Party(java.lang.String name,
             java.lang.String number,
             java.lang.String description,
             java.lang.String guid)
Parameters:
name -
number -
description -
guid -
Method Detail

setId

public void setId(java.lang.Long id)
Description copied from interface: IPersistent
Sets the Id attribute of the IPersistent object

Specified by:
setId in interface IPersistent
Parameters:
id -

setStreetAddress

public void setStreetAddress(IStreetAddress address)
Specified by:
setStreetAddress in interface IParty
Parameters:
address -

setName

public void setName(java.lang.String string)
Specified by:
setName in interface IParty
Parameters:
string -

setContacts

public void setContacts(java.util.Set contacts)
Specified by:
setContacts in interface IParty
Parameters:
contacts - The new Contacts value

setDescription

public void setDescription(java.lang.String string)
Specified by:
setDescription in interface IParty
Parameters:
string -

setNumber

public void setNumber(java.lang.String string)
Specified by:
setNumber in interface IParty
Parameters:
string -

setGuid

public void setGuid(java.lang.String guid)
Sets the Guid attribute of the Party object

Specified by:
setGuid in interface IParty
Parameters:
guid - The new Guid value

setVersion

public void setVersion(int i)
Specified by:
setVersion in interface IPersistent
Parameters:
i -

getId

public java.lang.Long getId()
Gets the Id attribute of the Party object

Specified by:
getId in interface IPersistent
Returns:
The Id value

getName

public java.lang.String getName()
Description copied from interface: INamedObject
Gets the Name attribute of the INamedObject object

Specified by:
getName in interface INamedObject
Returns:

getStreetAddress

public IStreetAddress getStreetAddress()
Specified by:
getStreetAddress in interface IParty
Returns:

getContacts

public java.util.Set getContacts()
Specified by:
getContacts in interface IParty
Returns:

getContact

public Contact getContact(int type)
Specified by:
getContact in interface IParty
Parameters:
type - Description of Parameter
Returns:
A Contact of type = type or null

getContact

public Contact getContact(int type,
                          boolean create)
Specified by:
getContact in interface IParty
Parameters:
type - A contact type
create - A boolean - if true add a contact of type type
Returns:
A Contact of type = type

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IParty
Returns:

getNumber

public java.lang.String getNumber()
Specified by:
getNumber in interface IParty
Returns:

getGuid

public java.lang.String getGuid()
Gets the Guid attribute of the Party object

Specified by:
getGuid in interface IParty
Returns:
The Guid value

getVersion

public int getVersion()
Specified by:
getVersion in interface IPersistent
Returns:

removeContact

public void removeContact(Contact contact)
Specified by:
removeContact in interface IParty
Parameters:
contact - A Contact

equals

public boolean equals(java.lang.Object other)
Description of the Method

Parameters:
other - Description of Parameter
Returns:
Description of the Returned Value

hashCode

public int hashCode()
Description of the Method

Returns:
Description of the Returned Value