public class Episode extends java.lang.Object implements IEpisode
Constructor and Description |
---|
Episode()
The constructor
|
Episode(int episodeNumber,
ISeason season,
boolean special)
The constructor used to create a episode instance
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Actor> |
getActors()
Used to get a list of actors in the episode
|
java.util.Date |
getDate()
Gets the first air date of the episode
|
java.util.List<java.lang.String> |
getDirectors()
Used to get a list of directors for the episode
|
java.lang.String |
getEpisodeId()
Used to get the numeric unique episode id used by the source
|
int |
getEpisodeNumber()
Gets the number of the episode.
|
java.util.List<java.lang.Integer> |
getEpisodes()
Used to get the episode numbers that this episode contains
|
java.util.List<VideoFile> |
getFiles()
Used to get a list of files that belong to the video entry
|
java.net.URL |
getImageURL()
Used to get a URL which points to a image of the episode
|
Rating |
getRating()
Used to get the episode rating
|
ISeason |
getSeason()
Get the season the episode belongs too
|
java.lang.String |
getSummary()
Get a summary of the episode
|
java.lang.String |
getTitle()
Gets the title of the show
|
java.net.URL |
getUrl()
Used to get the URL used to get a summary of the show
|
java.util.List<java.lang.String> |
getWriters()
Used to get a list of writers for the episode
|
boolean |
isSpecial()
Used to find out if this is a special
|
void |
setActors(java.util.List<Actor> actors)
Used to set a list of actors in the episode
|
void |
setDate(java.util.Date airDate)
Sets the air date of the show
|
void |
setDirectors(java.util.List<java.lang.String> directors)
Used to set a list of directors for the episode
|
void |
setEpisodeId(java.lang.String episodeId)
Used to set the numeric unique episode id used by the source
|
void |
setEpisodeNumber(int episodeNumner)
Sets the number of the episode.
|
void |
setEpisodes(java.util.List<java.lang.Integer> epsiodes)
Used to set the episode numbers that this episode contains
|
void |
setFiles(java.util.List<VideoFile> videoFiles)
Used to set the list of files that belong to the video entry
|
void |
setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the episode
|
void |
setRating(Rating rating)
Used to set the episode rating
|
void |
setSeason(ISeason season)
Used to set the episode season
|
void |
setSpecial(boolean special)
Used to flag this as a special episode
|
void |
setSummary(java.lang.String summary)
Sets the summary of the episode
|
void |
setTitle(java.lang.String title)
Sets the title of the episode
|
void |
setUrl(java.net.URL url)
Used to set the URL used to get a summary of the show
|
void |
setWriters(java.util.List<java.lang.String> writers)
Used to set a list of writers for the episode
|
java.lang.String |
toString()
Returns a string summary of this classes contents.
|
public Episode()
public Episode(int episodeNumber, ISeason season, boolean special)
episodeNumber
- The number of the episode within the seasonseason
- The season it belongs toospecial
- Is this episode a specialpublic ISeason getSeason()
public void setSeason(ISeason season)
season
- the episode seasonpublic int getEpisodeNumber()
getEpisodeNumber
in interface IEpisode
public void setEpisodeNumber(int episodeNumner)
setEpisodeNumber
in interface IEpisode
episodeNumner
- public java.util.List<java.lang.Integer> getEpisodes()
getEpisodes
in interface IEpisode
public void setEpisodes(java.util.List<java.lang.Integer> epsiodes)
setEpisodes
in interface IEpisode
epsiodes
- the episode numbers that this episode containspublic java.lang.String getSummary()
getSummary
in interface IVideo
public void setSummary(java.lang.String summary)
setSummary
in interface IVideo
summary
- The summary of the episodepublic void setTitle(java.lang.String title)
public void setDate(java.util.Date airDate)
public java.lang.String getTitle()
public boolean isSpecial()
public java.util.Date getDate()
public void setUrl(java.net.URL url)
public java.net.URL getUrl()
public java.lang.String getEpisodeId()
getEpisodeId
in interface IEpisode
public void setEpisodeId(java.lang.String episodeId)
setEpisodeId
in interface IEpisode
episodeId
- The numeric unique episode id used by the sourcepublic java.util.List<Actor> getActors()
getActors
in interface IVideoActors
public void setActors(java.util.List<Actor> actors)
setActors
in interface IVideoActors
actors
- A list of actors in the episodepublic java.util.List<java.lang.String> getDirectors()
getDirectors
in interface IVideo
public void setDirectors(java.util.List<java.lang.String> directors)
setDirectors
in interface IVideo
directors
- The list of directors for the episodepublic java.util.List<java.lang.String> getWriters()
getWriters
in interface IVideo
public void setWriters(java.util.List<java.lang.String> writers)
setWriters
in interface IVideo
writers
- The list of writerspublic Rating getRating()
getRating
in interface IVideoRating
public void setRating(Rating rating)
setRating
in interface IVideoRating
rating
- The episode ratingpublic java.net.URL getImageURL()
getImageURL
in interface IEpisode
public void setImageURL(java.net.URL imageURL)
setImageURL
in interface IEpisode
imageURL
- A URL which points too a image of the episodepublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<VideoFile> getFiles()
public void setFiles(java.util.List<VideoFile> videoFiles)
public void setSpecial(boolean special)
setSpecial
in interface IEpisode
special
- The special value to set