org.stanwood.media.model
Class Season

java.lang.Object
  extended by org.stanwood.media.model.Season
All Implemented Interfaces:
ISeason
Direct Known Subclasses:
CacheSeason

public class Season
extends java.lang.Object
implements ISeason

This is used to hold information on a season within a show


Constructor Summary
Season(IShow show, int seasonNumber)
          The constructor used to create a instance of the season.
 
Method Summary
 int getSeasonNumber()
          Get the number of the season
 IShow getShow()
          Get the show the season belongs too
 java.net.URL getURL()
          Used to get the episode listing URL for the season
 void setURL(java.net.URL url)
          Sets the episode listing URL for the season
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Season

public Season(IShow show,
              int seasonNumber)
The constructor used to create a instance of the season.

Parameters:
show - The show the season belongs too
seasonNumber - The season number
Method Detail

getURL

public java.net.URL getURL()
Used to get the episode listing URL for the season

Specified by:
getURL in interface ISeason
Returns:
The episode listing URL for the season

setURL

public void setURL(java.net.URL url)
Sets the episode listing URL for the season

Specified by:
setURL in interface ISeason
Parameters:
url - The episode listing URL for the season

getSeasonNumber

public int getSeasonNumber()
Get the number of the season

Specified by:
getSeasonNumber in interface ISeason
Returns:
The season number

getShow

public IShow getShow()
Get the show the season belongs too

Specified by:
getShow in interface ISeason
Returns:
The show the season belongs too