|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mflow.impl.ContactImpl
A class for representing an entity with which communication can occur Serves primarily as a repository for ContactMethods, associated with a name
| Method Summary | |
|---|---|
void |
addContactMethod(ContactMethod cm)
Adds a ContactMethod |
boolean |
equals(java.lang.Object o)
Returns whether the specified object equals the current object |
ContactMethod[] |
getContactMethods()
Accessor for all of the ContactMethods associated with this Contact |
ContactMethod |
getContactMethods(int index)
Accessor for a single ContactMethod associated with this Contact |
java.lang.String |
getName()
Accessor for the name |
int |
hashCode()
|
void |
removeContactMethod(ContactMethod cm)
Removes a ContactMethod if it is a member of this Contact |
void |
setContactMethods(ContactMethod[] cms)
Mutator for all of the ContactMethods associated with this Contact |
void |
setContactMethods(int index,
ContactMethod cm)
Mutator for a single ContactMethod associated with this Contact |
void |
setName(java.lang.String name)
Mutator for the name |
java.lang.String |
toString()
Returns a string representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setName(java.lang.String name)
setName in interface Contactname - the new namepublic java.lang.String getName()
getName in interface Contactpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an object to compare with
public int hashCode()
hashCode in class java.lang.Objectpublic void addContactMethod(ContactMethod cm)
addContactMethod in interface Contactcm - the ContactMethod to addpublic void removeContactMethod(ContactMethod cm)
removeContactMethod in interface Contactcm - the ContactMethod to removepublic ContactMethod[] getContactMethods()
getContactMethods in interface Contactpublic void setContactMethods(ContactMethod[] cms)
setContactMethods in interface Contactcms - an array of ContactMethods
public ContactMethod getContactMethods(int index)
throws java.lang.ArrayIndexOutOfBoundsException
getContactMethods in interface Contactindex - the index of the ContactMethod to return
java.lang.ArrayIndexOutOfBoundsException - if the specified index is invalid
public void setContactMethods(int index,
ContactMethod cm)
throws java.lang.ArrayIndexOutOfBoundsException
setContactMethods in interface Contactindex - the index of the ContactMethod to changecm - te ContactMethod to set
java.lang.ArrayIndexOutOfBoundsException - if the specified index is invalidpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||