|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 Contact
name
- the new namepublic java.lang.String getName()
getName
in interface Contact
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- an object to compare with
public int hashCode()
hashCode
in class java.lang.Object
public void addContactMethod(ContactMethod cm)
addContactMethod
in interface Contact
cm
- the ContactMethod to addpublic void removeContactMethod(ContactMethod cm)
removeContactMethod
in interface Contact
cm
- the ContactMethod to removepublic ContactMethod[] getContactMethods()
getContactMethods
in interface Contact
public void setContactMethods(ContactMethod[] cms)
setContactMethods
in interface Contact
cms
- an array of ContactMethodspublic ContactMethod getContactMethods(int index) throws java.lang.ArrayIndexOutOfBoundsException
getContactMethods
in interface Contact
index
- the index of the ContactMethod to return
java.lang.ArrayIndexOutOfBoundsException
- if the specified index is invalidpublic void setContactMethods(int index, ContactMethod cm) throws java.lang.ArrayIndexOutOfBoundsException
setContactMethods
in interface Contact
index
- 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 |