Methods Summary |
---|
public void | addRepeatField(RepeatField repeatField)Adds a repeat field.
if (repeatField == null)
throw new NullPointerException("null repeatField");
this.repeatList.addElement(repeatField);
|
public java.util.Vector | getRepeatTimes(boolean create)Returns the list of repeat times (r= fields)
specified in the SessionDescription.
return this.repeatList;
|
public TimeField | getTime()Returns the Time field.
return timeImpl;
|
public void | setRepeatTimes(java.util.Vector repeatTimes)Returns the list of repeat times (r= fields)
specified in the SessionDescription.
this.repeatList = repeatTimes;
|
public void | setTime(TimeField timeField)Sets the Time field.
if (timeField == null) {
throw new SdpException("The parameter is null");
} else {
if (timeField instanceof TimeField) {
this.timeImpl = (TimeField)timeField;
} else
throw new SdpException
("The parameter is not an instance of TimeField");
}
|
public java.lang.String | toString()Encodes contents as a string.
String retval = timeImpl.encode();
for (int i = 0; i < this.repeatList.size(); i++) {
RepeatField repeatField =
(RepeatField) this.repeatList.elementAt(i);
retval += repeatField.encode();
}
return retval;
|