NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sdp
Class TimeDescriptionImpl

java.lang.Object
  extended by gov.nist.javax.sdp.TimeDescriptionImpl
All Implemented Interfaces:
Serializable, Cloneable, TimeDescription

public class TimeDescriptionImpl
extends Object
implements TimeDescription

Implementation of Time Description

Version:
1.2
Author:
Olivier Deruelle, M. Ranganathan
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.sdp.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
equals, 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

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.