|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.Email
public class Email
An Email represents an e=<field value> field contained in a SDP message. An email field specify contact information for the person responsible for the conference. This is not necessarily the same person that created the conference announcement.
Field Summary | |
---|---|
protected Contact |
contact
The field contact information |
Fields inherited from interface net.sourceforge.jsdp.Field |
---|
ATTRIBUTE_FIELD, BANDWITH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, END_OF_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, REPEAT_TIME_FIELD, SESSION_NAME_FIELD, TIME_FIELD, TIMEZONE_FIELD, URI_FIELD, VERSION_FIELD |
Constructor Summary | |
---|---|
protected |
Email()
Creates a new Email. |
|
Email(String info)
Creates a new Email. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this field. |
String |
getEmail()
Returns the e-mail address of the contact. |
String |
getPersonal()
Returns the personal information of the contact. |
char |
getType()
Returns the type character for the field. |
static Email |
parse(String field)
Parse an input string and constructs the equivalent email field. |
void |
setEmail(String email)
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 field. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Contact contact
Constructor Detail |
---|
protected Email()
public Email(String info) throws SDPException
info
- the field contact information
SDPException
- if the contact information are not validMethod Detail |
---|
public static Email parse(String field) throws SDPParseException
field
- the string to parse
SDPParseException
- if an error occurs while parsingpublic Object clone()
Field
clone
in interface Field
clone
in class Object
public String getEmail()
public String getPersonal()
public char getType()
getType
in interface Field
public void setEmail(String email) throws SDPException
email
- the e-mail address to set
SDPException
- if the em-mail address is not validpublic void setPersonal(String personal) throws SDPException
personal
- the personal information to set
SDPException
- if the personal information are not validpublic String toString()
toString
in interface Field
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |