|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.model.Film
public class Film
This class is used to hold film related information
Constructor Summary | |
---|---|
Film()
Used to create a film |
|
Film(java.lang.String id)
Used to create a instance of the film class. |
Method Summary | |
---|---|
void |
addChapter(Chapter chapter)
Used to add a chapter to the film |
void |
addGenre(java.lang.String genre)
Used to add a genre to the film |
java.util.List<Actor> |
getActors()
Used to get a list of actors in the video |
java.util.List<Certification> |
getCertifications()
Used to get a list of the films certifications |
java.util.List<Chapter> |
getChapters()
Used to get the chapters of the film |
java.lang.String |
getCountry()
This will return the country the film was made in, or null if it's not known. |
java.util.Date |
getDate()
Used to get the release date of the film |
java.lang.String |
getDescription()
Used to get the films long description |
java.util.List<java.lang.String> |
getDirectors()
Used to get a list of directors for the film |
java.util.SortedSet<IVideoFile> |
getFiles()
Used to get a list of files that belong to the video entry |
java.net.URL |
getFilmUrl()
Used to get the URL used to get a summary of the film |
java.util.List<java.lang.String> |
getGenres()
Used to get the genres that the film belongs too |
java.lang.String |
getId()
Used to get the id of the film used by the source that it was read from. |
java.net.URL |
getImageURL()
Used to get the URL of the film poster. |
java.lang.String |
getPreferredGenre()
This is useful if the film belongs to more than one genres. |
Rating |
getRating()
Used to get the global user rating of the film |
java.lang.String |
getSourceId()
Used to get the source id of the source that was used to retrieve the film information. |
java.lang.String |
getStudio()
Used to get the films studio |
java.lang.String |
getSummary()
Used to get a summary of the film |
java.lang.String |
getTitle()
Used to get the film title. |
java.util.List<java.lang.String> |
getWriters()
Used to get a list of writers for the film |
void |
setActors(java.util.List<Actor> actors)
Used to set the list of actors in the film |
void |
setCertifications(java.util.List<Certification> certifications)
Used to set the films certifications |
void |
setChapters(java.util.List<Chapter> chapters)
Used to set the chapter information for the film |
void |
setCountry(java.lang.String country)
Used to set the country the film was made in. |
void |
setDate(java.util.Date date)
Used to set the release date of the film |
void |
setDescription(java.lang.String description)
Used to set the films long description |
void |
setDirectors(java.util.List<java.lang.String> directors)
Used to set a list of directors for the episode |
void |
setFiles(java.util.Collection<IVideoFile> videoFiles)
Used to set the list of files that belong to the video entry |
void |
setFilmUrl(java.net.URL url)
Used to set the URL used to get a summary of the film |
void |
setGenres(java.util.List<java.lang.String> genres)
Used to set the genres that the film belongs too |
void |
setId(java.lang.String id)
Used to set the id of the film used by the source that it was read from. |
void |
setImageURL(java.net.URL imageURL)
Used to set the URL of the film poster |
void |
setPreferredGenre(java.lang.String preferredGenre)
Used to set the genre that is preferred in the list of genres. |
void |
setRating(Rating rating)
Used to set the global user rating of the film |
void |
setSourceId(java.lang.String sourceId)
Used to set the source id of the source that was used to retrieve the film information. |
void |
setStudio(java.lang.String studio)
Used to set the films studio |
void |
setSummary(java.lang.String summary)
Used to set the films summary |
void |
setTitle(java.lang.String title)
Used to set the title of the film |
void |
setWriters(java.util.List<java.lang.String> writers)
Used to set a list of writers for the film |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Film()
public Film(java.lang.String id)
id
- The id of the film used by the source that it was read from.Method Detail |
---|
public java.lang.String getPreferredGenre()
getPreferredGenre
in interface IVideoGenre
public void setPreferredGenre(java.lang.String preferredGenre)
setPreferredGenre
in interface IVideoGenre
preferredGenre
- The preferred genrepublic java.lang.String getId()
getId
in interface IFilm
public void setId(java.lang.String id)
setId
in interface IFilm
id
- The id of the filmpublic java.lang.String getSourceId()
getSourceId
in interface IFilm
public void setSourceId(java.lang.String sourceId)
setSourceId
in interface IFilm
sourceId
- The source idpublic java.lang.String getTitle()
getTitle
in interface IVideo
public void setTitle(java.lang.String title)
setTitle
in interface IVideo
title
- The title of the filmpublic java.util.List<Actor> getActors()
getActors
in interface IVideoActors
public void setActors(java.util.List<Actor> actors)
setActors
in interface IVideoActors
actors
- The list of actors in the filmpublic 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 java.lang.String getSummary()
getSummary
in interface IVideo
public void setSummary(java.lang.String summary)
setSummary
in interface IVideo
summary
- The films summarypublic void setFilmUrl(java.net.URL url)
setFilmUrl
in interface IFilm
url
- The summary URLpublic java.net.URL getFilmUrl()
getFilmUrl
in interface IFilm
public void setGenres(java.util.List<java.lang.String> genres)
setGenres
in interface IVideoGenre
genres
- The genres that the film belongs toopublic java.util.List<java.lang.String> getGenres()
getGenres
in interface IVideoGenre
public void addGenre(java.lang.String genre)
addGenre
in interface IVideoGenre
genre
- the genre to addpublic java.util.List<Certification> getCertifications()
getCertifications
in interface IVideoCertification
public void setCertifications(java.util.List<Certification> certifications)
setCertifications
in interface IVideoCertification
certifications
- The films certificationspublic Rating getRating()
getRating
in interface IVideoRating
public void setRating(Rating rating)
setRating
in interface IVideoRating
rating
- The global user rating of the showpublic java.util.Date getDate()
getDate
in interface IFilm
public void setDate(java.util.Date date)
setDate
in interface IFilm
date
- The release date of the filmpublic void setImageURL(java.net.URL imageURL)
setImageURL
in interface IFilm
imageURL
- The URL of the film poster.public java.net.URL getImageURL()
getImageURL
in interface IFilm
public void addChapter(Chapter chapter)
addChapter
in interface IFilm
chapter
- The chapter to addpublic java.util.List<Chapter> getChapters()
getChapters
in interface IFilm
public void setChapters(java.util.List<Chapter> chapters)
setChapters
in interface IFilm
chapters
- The chapters of the filmpublic void setDescription(java.lang.String description)
setDescription
in interface IFilm
description
- The films long descriptionpublic java.lang.String getDescription()
getDescription
in interface IFilm
public java.lang.String getCountry()
getCountry
in interface IFilm
public void setCountry(java.lang.String country)
setCountry
in interface IFilm
country
- the country to setpublic java.util.SortedSet<IVideoFile> getFiles()
getFiles
in interface IVideo
public void setFiles(java.util.Collection<IVideoFile> videoFiles)
setFiles
in interface IVideo
videoFiles
- The list of filespublic void setStudio(java.lang.String studio)
setStudio
in interface IFilm
studio
- the films studiopublic java.lang.String getStudio()
getStudio
in interface IFilm
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |