|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xtvdclient.xtvd.datatypes.AbstractDataType
net.sf.xtvdclient.xtvd.datatypes.Schedule
public class Schedule
A bean
that represents a schedule record.
Field Summary |
---|
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType |
---|
END_OF_LINE |
Constructor Summary | |
---|---|
Schedule()
Default constructor. |
|
Schedule(java.lang.String program,
int station,
DateTime time,
Duration duration)
Create a new instance of the class and initialise the required instance variables with the specified values. |
|
Schedule(java.lang.String program,
int station,
DateTime time,
Duration duration,
boolean repeat,
TvRatings tvRating,
boolean stereo,
boolean subtitled,
boolean hdtv,
boolean closeCaptioned)
Create a new instance of the class and initialise all the instance variables that represent attributes of the
schedule element with the specified vlaues. |
|
Schedule(java.lang.String program,
int station,
DateTime time,
Duration duration,
boolean repeat,
TvRatings tvRating,
boolean stereo,
boolean subtitled,
boolean hdtv,
boolean closeCaptioned,
Part part)
Create a new instance of the class and initialise all the instance variables with the specified vlaues. |
Method Summary | |
---|---|
boolean |
getCloseCaptioned()
Returns closeCaptioned . |
Duration |
getDuration()
Returns duration . |
boolean |
getHdtv()
Returns hdtv . |
Part |
getPart()
Returns part . |
java.lang.String |
getProgram()
Returns program . |
boolean |
getRepeat()
Returns repeat . |
int |
getStation()
Returns station . |
boolean |
getStereo()
Returns stereo . |
boolean |
getSubtitled()
Returns subtitled . |
DateTime |
getTime()
Returns time . |
TvRatings |
getTvRating()
Returns tvRating . |
void |
reset()
Reset all the instance variables to empty values. |
void |
setCloseCaptioned(boolean closeCaptioned)
Set closeCaptioned . |
void |
setDuration(Duration duration)
Set duration . |
void |
setHdtv(boolean hdtv)
Set hdtv . |
void |
setPart(Part part)
Set part . |
void |
setProgram(java.lang.String program)
Set program . |
void |
setRepeat(boolean repeat)
Set repeat . |
void |
setStation(int station)
Set station . |
void |
setStereo(boolean stereo)
Set stereo . |
void |
setSubtitled(boolean subtitled)
Set subtitled . |
void |
setTime(DateTime time)
Set time . |
void |
setTvRating(TvRatings tvRating)
Set tvRating . |
java.lang.String |
toString()
Over-ridden implementation. |
Methods inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType |
---|
compareTo, equals, replaceSpecialCharacters, replaceSpecialCharacters |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Schedule()
public Schedule(java.lang.String program, int station, DateTime time, Duration duration)
program
- The program
value to set.station
- The station
value to set.time
- The time
value to set.duration
- The duration
value to set.public Schedule(java.lang.String program, int station, DateTime time, Duration duration, boolean repeat, TvRatings tvRating, boolean stereo, boolean subtitled, boolean hdtv, boolean closeCaptioned)
attributes
of the
schedule
element with the specified vlaues.
program
- The program
value to set.station
- The station
value to set.time
- The time
value to set.duration
- The duration
value to set.repeat
- The repeat
value to set.tvRating
- The tvRating
value to set.stereo
- The stereo
value to set.subtitled
- The subtitled
value to set.hdtv
- The hdtv
value to set.closeCaptioned
- The closeCaptioned
value to set.public Schedule(java.lang.String program, int station, DateTime time, Duration duration, boolean repeat, TvRatings tvRating, boolean stereo, boolean subtitled, boolean hdtv, boolean closeCaptioned, Part part)
program
- The program
value to set.station
- The station
value to set.time
- The time
value to set.duration
- The duration
value to set.repeat
- The repeat
value to set.tvRating
- The tvRating
value to set.stereo
- The stereo
value to set.subtitled
- The subtitled
value to set.hdtv
- The hdtv
value to set.closeCaptioned
- The closeCaptioned
value to set.part
- The part
value to set.Method Detail |
---|
public void reset()
time
variable is not reset.
public java.lang.String toString()
XML representation
of the class fields in the same format as in the original
XTVD document
.
toString
in class java.lang.Object
public final java.lang.String getProgram()
program
.
public final void setProgram(java.lang.String program)
program
.
program
- The value to set.public final int getStation()
station
.
public final void setStation(int station)
station
.
station
- The value to set.public final DateTime getTime()
time
.
public final void setTime(DateTime time)
time
.
time
- The value to set.public final Duration getDuration()
duration
.
public final void setDuration(Duration duration)
duration
.
duration
- The value to set.public final boolean getRepeat()
repeat
.
public final void setRepeat(boolean repeat)
repeat
.
repeat
- The value to set.public final TvRatings getTvRating()
tvRating
.
public final void setTvRating(TvRatings tvRating)
tvRating
.
tvRating
- The value to set.public final boolean getStereo()
stereo
.
public final void setStereo(boolean stereo)
stereo
.
stereo
- The value to set.public final boolean getSubtitled()
subtitled
.
public final void setSubtitled(boolean subtitled)
subtitled
.
subtitled
- The value to set.public final boolean getHdtv()
hdtv
.
public final void setHdtv(boolean hdtv)
hdtv
.
hdtv
- The value to set.public final boolean getCloseCaptioned()
closeCaptioned
.
public final void setCloseCaptioned(boolean closeCaptioned)
closeCaptioned
.
closeCaptioned
- The value to set.public final Part getPart()
part
.
public final void setPart(Part part)
part
.
part
- The value to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |