public class PhoneField extends SDPField implements Phone
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
phoneNumber |
CORE_PACKAGE, SDPFIELDS_PACKAGE
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
Constructor and Description |
---|
PhoneField() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Get the string encoded version of this object
|
String |
getName() |
String |
getPhoneNumber() |
String |
getValue()
Returns the value.
|
void |
setName(String name)
Set the name member
|
void |
setPhoneNumber(String phoneNumber)
Set the phoneNumber member
|
void |
setValue(String value)
Sets the value.
|
getFieldName, getTypeChar, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
clone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getTypeChar
public String getName()
public String getPhoneNumber()
public void setName(String name)
name
- - the name to set.public void setPhoneNumber(String phoneNumber)
phoneNumber
- - phone number to set.public String getValue() throws SdpParseException
getValue
in interface Phone
SdpParseException
public void setValue(String value) throws SdpException
setValue
in interface Phone
value
- the - new information.SdpException
- if the value is nullCopyright © 2016. All Rights Reserved.