org.stanwood.media.model
Class Episode

java.lang.Object
  extended by org.stanwood.media.model.Episode
All Implemented Interfaces:
IEpisode, IVideo, IVideoActors, IVideoRating
Direct Known Subclasses:
XBMCEpisode

public class Episode
extends java.lang.Object
implements IEpisode

This is used to store episode information


Constructor Summary
Episode(int episodeNumber, ISeason season, boolean special)
          The constructor used to create a episode instance
 
Method Summary
 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.SortedSet<IVideoFile> 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 setFiles(java.util.Collection<IVideoFile> 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Episode

public Episode(int episodeNumber,
               ISeason season,
               boolean special)
The constructor used to create a episode instance

Parameters:
episodeNumber - The number of the episode within the season
season - The season it belongs too
special - Is this episode a special
Method Detail

getSeason

public ISeason getSeason()
Get the season the episode belongs too

Specified by:
getSeason in interface IEpisode
Returns:
The season the episode belongs too

getEpisodeNumber

public int getEpisodeNumber()
Gets the number of the episode.

Specified by:
getEpisodeNumber in interface IEpisode
Returns:
The number of the episode

setEpisodeNumber

public void setEpisodeNumber(int episodeNumner)
Sets the number of the episode.

Specified by:
setEpisodeNumber in interface IEpisode
Parameters:
episodeNumner -

getSummary

public java.lang.String getSummary()
Get a summary of the episode

Specified by:
getSummary in interface IVideo
Returns:
The summary of the episode

setSummary

public void setSummary(java.lang.String summary)
Sets the summary of the episode

Specified by:
setSummary in interface IVideo
Parameters:
summary - The summary of the episode

setTitle

public void setTitle(java.lang.String title)
Sets the title of the episode

Specified by:
setTitle in interface IVideo
Parameters:
title - The title of the episode

setDate

public void setDate(java.util.Date airDate)
Sets the air date of the show

Specified by:
setDate in interface IEpisode
Parameters:
airDate - The air date of the show

getTitle

public java.lang.String getTitle()
Gets the title of the show

Specified by:
getTitle in interface IVideo
Returns:
The title of the show

isSpecial

public boolean isSpecial()
Used to find out if this is a special

Specified by:
isSpecial in interface IEpisode
Returns:
True if special, otherwise false

getDate

public java.util.Date getDate()
Gets the first air date of the episode

Specified by:
getDate in interface IEpisode
Returns:
The first air date of the episode

setUrl

public void setUrl(java.net.URL url)
Used to set the URL used to get a summary of the show

Specified by:
setUrl in interface IEpisode
Parameters:
url - The summary URL

getUrl

public java.net.URL getUrl()
Used to get the URL used to get a summary of the show

Specified by:
getUrl in interface IEpisode
Returns:
The summary URL

getEpisodeId

public java.lang.String getEpisodeId()
Used to get the numeric unique episode id used by the source

Specified by:
getEpisodeId in interface IEpisode
Returns:
the numeric unique episode id used by the source

setEpisodeId

public void setEpisodeId(java.lang.String episodeId)
Used to set the numeric unique episode id used by the source

Specified by:
setEpisodeId in interface IEpisode
Parameters:
episodeId - The numeric unique episode id used by the source

getActors

public java.util.List<Actor> getActors()
Used to get a list of actors in the episode

Specified by:
getActors in interface IVideoActors
Returns:
a list of actors in the episode

setActors

public void setActors(java.util.List<Actor> actors)
Used to set a list of actors in the episode

Specified by:
setActors in interface IVideoActors
Parameters:
actors - A list of actors in the episode

getDirectors

public java.util.List<java.lang.String> getDirectors()
Used to get a list of directors for the episode

Specified by:
getDirectors in interface IVideo
Returns:
A list of directors for the episode

setDirectors

public void setDirectors(java.util.List<java.lang.String> directors)
Used to set a list of directors for the episode

Specified by:
setDirectors in interface IVideo
Parameters:
directors - The list of directors for the episode

getWriters

public java.util.List<java.lang.String> getWriters()
Used to get a list of writers for the episode

Specified by:
getWriters in interface IVideo
Returns:
Get a list of writers for the episode

setWriters

public void setWriters(java.util.List<java.lang.String> writers)
Used to set a list of writers for the episode

Specified by:
setWriters in interface IVideo
Parameters:
writers - The list of writers

getRating

public Rating getRating()
Used to get the episode rating

Specified by:
getRating in interface IVideoRating
Returns:
the episode rating

setRating

public void setRating(Rating rating)
Used to set the episode rating

Specified by:
setRating in interface IVideoRating
Parameters:
rating - The episode rating

getImageURL

public java.net.URL getImageURL()
Used to get a URL which points to a image of the episode

Specified by:
getImageURL in interface IEpisode
Returns:
A URL which points too a image of the episode

setImageURL

public void setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the episode

Specified by:
setImageURL in interface IEpisode
Parameters:
imageURL - A URL which points too a image of the episode

toString

public java.lang.String toString()
Returns a string summary of this classes contents. Mainly intended for use when debugging.

Overrides:
toString in class java.lang.Object
Returns:
string summary of this classes contents

getFiles

public java.util.SortedSet<IVideoFile> getFiles()
Used to get a list of files that belong to the video entry

Specified by:
getFiles in interface IVideo
Returns:
The list of files

setFiles

public void setFiles(java.util.Collection<IVideoFile> videoFiles)
Used to set the list of files that belong to the video entry

Specified by:
setFiles in interface IVideo
Parameters:
videoFiles - The list of files