org.lastbamboo.common.sdp
Class TimeDescriptionImpl

java.lang.Object
  extended by org.lastbamboo.common.sdp.TimeDescriptionImpl
All Implemented Interfaces:
Serializable, Cloneable, TimeDescription

public class TimeDescriptionImpl
extends Object
implements TimeDescription

Implementation of Time Description

Version:
JAIN-SIP-1.1
Author:
Olivier Deruelle, M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.lastbamboo.common.sdp.api.TimeDescription
NTP_CONST
 
Constructor Summary
TimeDescriptionImpl()
          Creates new TimeDescriptionImpl
TimeDescriptionImpl(TimeField timeField)
          constructor
 
Method Summary
 void addRepeatField(RepeatField repeatField)
          Add a repeat field.
 Vector getRepeatTimes(boolean create)
          Returns the list of repeat times (r= fields) specified in the SessionDescription.
 Time getTime()
          Returns the Time field.
 void setRepeatTimes(Vector repeatTimes)
          Returns the list of repeat times (r= fields) specified in the SessionDescription.
 void setTime(Time timeField)
          Sets the Time field.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeDescriptionImpl

public TimeDescriptionImpl()
Creates new TimeDescriptionImpl


TimeDescriptionImpl

public TimeDescriptionImpl(TimeField timeField)
constructor

Parameters:
timeField - time field to create this descrition from
Method Detail

getTime

public Time getTime()
Returns the Time field.

Specified by:
getTime in interface TimeDescription
Returns:
Time

setTime

public void setTime(Time timeField)
             throws SdpException
Sets the Time field.

Specified by:
setTime in interface TimeDescription
Parameters:
timeField - Time to set
Throws:
SdpException - if the time is null

getRepeatTimes

public Vector getRepeatTimes(boolean create)
Returns the list of repeat times (r= fields) specified in the SessionDescription.

Specified by:
getRepeatTimes in interface TimeDescription
Parameters:
create - boolean to set
Returns:
Vector

setRepeatTimes

public void setRepeatTimes(Vector repeatTimes)
                    throws SdpException
Returns the list of repeat times (r= fields) specified in the SessionDescription.

Specified by:
setRepeatTimes in interface TimeDescription
Parameters:
repeatTimes - Vector to set
Throws:
SdpException - if the parameter is null

addRepeatField

public void addRepeatField(RepeatField repeatField)
Add a repeat field.

Parameters:
repeatField - -- repeat field to add.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.