org.lastbamboo.common.sdp.fields
Class PhoneField

java.lang.Object
  extended by org.lastbamboo.common.sdp.GenericObject
      extended by org.lastbamboo.common.sdp.fields.SDPObject
          extended by org.lastbamboo.common.sdp.fields.SDPField
              extended by org.lastbamboo.common.sdp.fields.PhoneField
All Implemented Interfaces:
Serializable, Cloneable, Field, Phone, SDPFieldNames

public class PhoneField
extends SDPField
implements Phone

Phone Field SDP header

Version:
JSR141-PUBLIC-REVIEW (subject to change).
Author:
Olivier Deruelle , M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
protected  String name
           
protected  String phoneNumber
           
 
Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField
fieldName
 
Fields inherited from class org.lastbamboo.common.sdp.GenericObject
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
 
Fields inherited from interface org.lastbamboo.common.sdp.fields.SDPFieldNames
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 Summary
PhoneField()
           
 
Method Summary
 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.
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPField
getFieldName, getTypeChar, toString
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint
 
Methods inherited from class org.lastbamboo.common.sdp.GenericObject
Assert, clone, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.lastbamboo.common.sdp.api.Field
clone, getTypeChar
 

Field Detail

name

protected String name

phoneNumber

protected String phoneNumber
Constructor Detail

PhoneField

public PhoneField()
Method Detail

getName

public String getName()

getPhoneNumber

public String getPhoneNumber()

setName

public void setName(String name)
Set the name member

Parameters:
name - - the name to set.

setPhoneNumber

public void setPhoneNumber(String phoneNumber)
Set the phoneNumber member

Parameters:
phoneNumber - - phone number to set.

getValue

public String getValue()
                throws SdpParseException
Returns the value.

Specified by:
getValue in interface Phone
Returns:
the value.
Throws:
SdpParseException

setValue

public void setValue(String value)
              throws SdpException
Sets the value.

Specified by:
setValue in interface Phone
Parameters:
value - the - new information.
Throws:
SdpException - if the value is null

encode

public String encode()
Get the string encoded version of this object

Specified by:
encode in class SDPField
Since:
v1.0 Here, we implement only the "name " form and not the "phoneNumber (name)" form


Copyright © 2013 LittleShoot. All Rights Reserved.