|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsdp.TimeDescription
public class TimeDescription
A TimeDescription represents the fields present within a SDP time description.
| Field Summary | |
|---|---|
protected ArrayList |
repeatTimes
The repeat time fields |
protected Time |
t
The time field |
| Constructor Summary | |
|---|---|
|
TimeDescription()
Creates a new TimeDescription. |
|
TimeDescription(Time t)
Creates a new TimeDescription. |
protected |
TimeDescription(TimeDescription td)
Creates a new TimeDescription. |
| Method Summary | |
|---|---|
void |
addRepeatTime(RepeatTime field)
Add a repeat time field. |
void |
clearRepeatTimes()
Remove all repeat time fields contained in the time description. |
Object |
clone()
Returns a clone of this description. |
RepeatTime[] |
getRepeatTimes()
Returns the repeat time fields. |
Time |
getTime()
Returns the time field. |
void |
setRepeatTimes(RepeatTime[] fields)
Sets the repeat time fields. |
void |
setTime(Time t)
Sets the time field. |
String |
toString()
Returns a string representation of this description |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Time t
protected ArrayList repeatTimes
| Constructor Detail |
|---|
public TimeDescription()
public TimeDescription(Time t)
throws IllegalArgumentException
t - the time field
IllegalArgumentException - if the time field is nullprotected TimeDescription(TimeDescription td)
clone() method, because this class has a default
constructor that performs some operations that aren't required while
cloning a description.
td - the TimeDescription to clone| Method Detail |
|---|
public void addRepeatTime(RepeatTime field)
throws IllegalArgumentException
field - the field to add
IllegalArgumentException - if the field is nullpublic void clearRepeatTimes()
public Object clone()
clone in interface Descriptionclone in class Objectpublic RepeatTime[] getRepeatTimes()
public Time getTime()
public void setRepeatTimes(RepeatTime[] fields)
throws IllegalArgumentException
fields - the repeat time fields to set
IllegalArgumentException - if one or more repeat time field is
null
public void setTime(Time t)
throws IllegalArgumentException
t - the time field
IllegalArgumentException - if the time field is nullpublic String toString()
toString in interface DescriptiontoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||