MovieLibrary
Class SeriesObject

java.lang.Object
  extended by MovieLibrary.VideoObject
      extended by MovieLibrary.SeriesObject

public class SeriesObject
extends VideoObject

Series object used to store information about TV shows

Author:
Alex

Field Summary
static int ENDED
          tv show status show ended
static int NEW
          tv show status new show
static int NOT_SPECIFIED
          tv show status not specified
static int RETURNING
          tv show status returning show
 
Fields inherited from class MovieLibrary.VideoObject
CLIP, MOVIE, MUSIC_VIDEO, NO_OF_VIDEO_TYPES, SERIES
 
Constructor Summary
SeriesObject(int requiredVideoID, java.io.File requiredFilePath, java.lang.String requiredEpisodeName, int requiredEpisodeNo, java.lang.String requiredSeriesName, int requiredSeasonNo)
          TV show constructor creates a tv show object.
many tv show objects in a series.
creates a new tv show object from supplied arguments.
SeriesObject(SeriesObject reqSerie)
          TV show constructor creates a tv show object.
many tv show objects in a series.
creates a new tv show object from given tv show object.
 
Method Summary
 java.util.ArrayList<java.lang.String> getActors()
          get actors
 java.lang.String getActorsString()
          gets the actors string version
 java.util.ArrayList<java.lang.String> getCreators()
          get creators
 java.lang.String getCreatorsString()
          gets the creators string version
 java.lang.String getEpisodeName()
          get the episode name of this video file (episode)
 int getEpisodeNo()
          get the episode number of this video file (episode)
 int getNoOfSeasons()
          get the number of seasons so far for this tv show
 int getReleaseDate()
          get the start date of this tv show
 int getSeasonNo()
          get the season number of this video file (episode)
 java.lang.String getSeriesName()
          get the name of the tv show this video file (episode) belongs to
 int getSeriesStatus()
          get the status of this tv show
static java.lang.String getStringSeriesCategory(int intSeriesCategory)
          get the string description of the given tv show genre
 void setActors(java.util.ArrayList<java.lang.String> reqActors)
          set actors
 void setActors(java.lang.String reqActors)
          set actors with given creators
 void setCreators(java.lang.String reqCreators)
          set creators with given creators
 void setEpisodeName(java.lang.String requiredEpisodeName)
          set the episode name of this video file (episode)
 void setEpisodeNo(int requiredEpisodeNo)
          set the episode number of this video file (episode)
 void setNoOfSeasons(int requiredNoOfSeasons)
          set the current number of season in this tv show
 void setReleaseDate(int reqReleaseDate)
          set the start date of this tv show
 void setSeasonNo(int requiredSeasonNo)
          set the season number of this video file (episode)
 void setSeriesName(java.lang.String requiredSeriesName)
          set the name of the tv show this video file (episode) belongs to
 void setSeriesStatus(int requiredSeriesStatus)
          set the series status of the tv show this video file (episode) belongs to
 
Methods inherited from class MovieLibrary.VideoObject
addToPlaylist, getAudioBitrate, getAudioCodec, getAudioSampleRate, getDuration, getFileSize, getFPS, getFrameCount, getFrameHeight, getFrameWidth, getGenre, getIntVideoType, getPlaylists, getStringVideoType, getStringVideoType, getVideoBitrate, getVideoCodec, getVideoID, getVideoName, getVideoPath, getVideoType, setAudioBitrate, setAudioCodec, setAudioSampleRate, setDuration, setFilePath, setFileSizeInBytes, setFPS, setFrameCount, setFrameHeight, setFrameWidth, setGenre, setVideoBitrate, setVideoCodec, setVideoID, setVideoName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_SPECIFIED

public static final int NOT_SPECIFIED
tv show status not specified

See Also:
Constant Field Values

NEW

public static final int NEW
tv show status new show

See Also:
Constant Field Values

ENDED

public static final int ENDED
tv show status show ended

See Also:
Constant Field Values

RETURNING

public static final int RETURNING
tv show status returning show

See Also:
Constant Field Values
Constructor Detail

SeriesObject

public SeriesObject(int requiredVideoID,
                    java.io.File requiredFilePath,
                    java.lang.String requiredEpisodeName,
                    int requiredEpisodeNo,
                    java.lang.String requiredSeriesName,
                    int requiredSeasonNo)
TV show constructor creates a tv show object.
many tv show objects in a series.
creates a new tv show object from supplied arguments.

Parameters:
requiredVideoID - unique ID to give to this tv show
requiredFilePath - file path of the video file
requiredEpisodeName - episode name of the video file
requiredEpisodeNo - episode number of the video file
requiredSeriesName - tv show name for the video file
requiredSeasonNo - season number of the video file

SeriesObject

public SeriesObject(SeriesObject reqSerie)
TV show constructor creates a tv show object.
many tv show objects in a series.
creates a new tv show object from given tv show object.

Parameters:
reqSerie - tv show object to copy into new tv show object
Method Detail

setEpisodeNo

public void setEpisodeNo(int requiredEpisodeNo)
set the episode number of this video file (episode)

Parameters:
requiredEpisodeNo - episode number of this video file (episode)

setEpisodeName

public void setEpisodeName(java.lang.String requiredEpisodeName)
set the episode name of this video file (episode)

Parameters:
requiredEpisodeName - episode name of this video file (episode)

getEpisodeNo

public int getEpisodeNo()
get the episode number of this video file (episode)

Returns:
the episode number of this video file (episode)

getEpisodeName

public java.lang.String getEpisodeName()
get the episode name of this video file (episode)

Returns:
the episode name of this video file (episode)

setSeasonNo

public void setSeasonNo(int requiredSeasonNo)
set the season number of this video file (episode)

Parameters:
requiredSeasonNo - the season number of this video file (episode)

getSeasonNo

public int getSeasonNo()
get the season number of this video file (episode)

Returns:
the season number of this video file (episode)

setSeriesName

public void setSeriesName(java.lang.String requiredSeriesName)
set the name of the tv show this video file (episode) belongs to

Parameters:
requiredSeriesName - name of tv show this video file (episode) belongs to

setSeriesStatus

public void setSeriesStatus(int requiredSeriesStatus)
set the series status of the tv show this video file (episode) belongs to

Parameters:
requiredSeriesStatus - the series name of the tv show this video file (episode) belongs to

setNoOfSeasons

public void setNoOfSeasons(int requiredNoOfSeasons)
set the current number of season in this tv show

Parameters:
requiredNoOfSeasons - the current number of season in this tv show

getSeriesName

public java.lang.String getSeriesName()
get the name of the tv show this video file (episode) belongs to

Returns:
the name of the tv show this video file (episode) belongs to

getSeriesStatus

public int getSeriesStatus()
get the status of this tv show

Returns:
status of this tv show

getNoOfSeasons

public int getNoOfSeasons()
get the number of seasons so far for this tv show

Returns:
get the number of seasons so far for this tv show

getStringSeriesCategory

public static java.lang.String getStringSeriesCategory(int intSeriesCategory)
get the string description of the given tv show genre

Parameters:
intSeriesCategory - tv show genre to get the string description for
Returns:
string description of the given tv show genre

getReleaseDate

public int getReleaseDate()
get the start date of this tv show

Returns:
start date of this tv show

setReleaseDate

public void setReleaseDate(int reqReleaseDate)
set the start date of this tv show

Parameters:
reqReleaseDate - start date of this tv show

setActors

public void setActors(java.util.ArrayList<java.lang.String> reqActors)
set actors

Parameters:
reqActors - actors to be set

setActors

public void setActors(java.lang.String reqActors)
set actors with given creators

Parameters:
reqActors - creators to be set as series actors

setCreators

public void setCreators(java.lang.String reqCreators)
set creators with given creators

Parameters:
reqCreators - creators to be set as series creators

getActors

public java.util.ArrayList<java.lang.String> getActors()
get actors

Returns:
actors of the series

getActorsString

public java.lang.String getActorsString()
gets the actors string version

Returns:
string list of actors

getCreators

public java.util.ArrayList<java.lang.String> getCreators()
get creators

Returns:
creators of the series

getCreatorsString

public java.lang.String getCreatorsString()
gets the creators string version

Returns:
string list of creators