|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsdp.util.Contact
public class Contact
A representation of a contact information.
| Field Summary | |
|---|---|
protected String |
address
The e-mail address of the contact |
protected String |
personal
The personal information of the contact |
| Constructor Summary | |
|---|---|
protected |
Contact()
Creates a new Contact. |
|
Contact(String info)
Creates a new Contact. |
|
Contact(String address,
String personal)
Creates a new Contact. |
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of this contact. |
String |
getAddress()
Returns the e-mail address. |
String |
getPersonal()
Returns the personal information. |
void |
setAddress(String address)
Sets the e-mail address of the contact. |
void |
setPersonal(String personal)
Sets the personal information of the contact. |
String |
toString()
Returns a string representation of the contact. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String address
protected String personal
| Constructor Detail |
|---|
protected Contact()
public Contact(String info)
throws SDPException
info - the contact information
SDPException - if the contact information aren't valid
public Contact(String address,
String personal)
throws SDPException
address - the e-mail address of the contactpersonal - the personal information of the contact
SDPException - if the e-mail address or the personal information
aren't valid| Method Detail |
|---|
public Object clone()
clone in class Objectpublic String getAddress()
public String getPersonal()
public void setAddress(String address)
throws SDPException
address - the e-mail address to set
SDPException - if the e-mail address is not valid
public void setPersonal(String personal)
throws SDPException
personal - the personal information to set
SDPException - if the personal information are not validpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||