|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.Phone
public class Phone
A Phone represents a p=<field value> field contained in a SDP message. A phone 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 String |
name
The phone user |
protected String |
phoneNumber
The phone number |
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 | |
---|---|
Phone(String number)
Creates a new Phone. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this field. |
String |
getName()
Returns the name of the phone user. |
String |
getPhoneNumber()
Returns the phone number. |
char |
getType()
Returns the type character for the field. |
static Phone |
parse(String field)
Parse an input string and constructs the equivalent phone field. |
void |
setName(String name)
Sets phone user name. |
void |
setPhoneNumber(String number)
Sets the phone number. |
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 String name
protected String phoneNumber
Constructor Detail |
---|
public Phone(String number) throws SDPException
number
- the phone number
SDPException
- if the phone number is not validMethod Detail |
---|
public static Phone parse(String field) throws SDPParseException
field
- the string to parse
SDPParseException
- if an error occurs while parsingpublic Object clone()
clone
in interface Field
clone
in class Object
public String getName()
public String getPhoneNumber()
public char getType()
getType
in interface Field
public void setName(String name) throws SDPException
name
- the phone user name
SDPException
- if the phone user name is not validpublic void setPhoneNumber(String number) throws SDPException
number
- the phone number
SDPException
- if the phone number is 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 |