|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.model.Show
org.stanwood.media.store.memory.CacheShow
public class CacheShow
Used to create a cache of the TV show data
Constructor Summary | |
---|---|
CacheShow(IShow show)
Used to create a instance of the cache show |
Method Summary | |
---|---|
void |
addGenre(java.lang.String genre)
Used to add a genre to the show |
void |
addSeason(CacheSeason season)
Used to add a season to the show. |
java.util.Map<java.lang.String,java.lang.String> |
getExtraInfo()
Used to get extra information to a show that their are no getters/setters for in the regular fields |
java.util.List<java.lang.String> |
getGenres()
Used to get the genres that the show belongs too |
java.net.URL |
getImageURL()
Used to get a URL which points too a image of the show |
java.lang.String |
getLongSummary()
Used to get a long summary of the show |
java.lang.String |
getName()
Used to get the name/title of the show |
java.lang.String |
getPreferredGenre()
This is useful if the film belongs to more than one genres. |
ISeason |
getSeason(int seasonNum)
Used to get a season from the show with the given season number. |
java.util.List<CacheSeason> |
getSeasons()
Used to get a list of seasons in the show |
java.lang.String |
getShortSummary()
Used to get a short summary of the show |
java.lang.String |
getShowId()
Used to get the id of the show, which was defined by the source it was fetched from. |
java.net.URL |
getShowURL()
Used to get a URL which points to a summary of the show |
java.lang.String |
getSourceId()
Used to get the source id of the source that was used to retrieve the shows information. |
void |
removeSeason(int seasonNumber)
Used to remove a season with the given season number from the show. |
void |
setExtraInfo(java.util.Map<java.lang.String,java.lang.String> params)
Used to add extra information to a show that their are no getters/setters for in the regular fields |
void |
setGenres(java.util.List<java.lang.String> genres)
Used to set the genres that the show belongs too |
void |
setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the show |
void |
setLongSummary(java.lang.String longSummary)
Used to set the long summary of the show |
void |
setName(java.lang.String name)
Used to set the name/title of the show |
void |
setPreferredGenre(java.lang.String preferredGenre)
Used to set the genre that is preferred in the list of genres. |
void |
setShortSummary(java.lang.String shortSummary)
Used to set the show summary of the show |
void |
setShowURL(java.net.URL showURL)
Used too set the URL which points to a summary of the show |
void |
setSourceId(java.lang.String sourceId)
Used to set the source id of the source that was used to retrieve the shows information. |
Methods inherited from class org.stanwood.media.model.Show |
---|
getCertifications, getStudio, setCertifications, setStudio, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheShow(IShow show)
show
- The show that is been cachedMethod Detail |
---|
public ISeason getSeason(int seasonNum)
seasonNum
- The number of the season too fetch.
public void removeSeason(int seasonNumber)
seasonNumber
- The season number of the season to removepublic void addSeason(CacheSeason season)
season
- The season to add to the show.public void setLongSummary(java.lang.String longSummary)
setLongSummary
in interface IShow
setLongSummary
in class Show
longSummary
- The long summary of the showpublic void setShortSummary(java.lang.String shortSummary)
setShortSummary
in interface IShow
setShortSummary
in class Show
shortSummary
- The short summary iof the showpublic void setGenres(java.util.List<java.lang.String> genres)
setGenres
in interface IVideoGenre
setGenres
in class Show
genres
- The genres that the show belongs toopublic void setName(java.lang.String name)
setName
in interface IShow
setName
in class Show
name
- The name of the showpublic void setShowURL(java.net.URL showURL)
setShowURL
in interface IShow
setShowURL
in class Show
showURL
- The URL which points to a summary of the showpublic java.lang.String getLongSummary()
getLongSummary
in interface IShow
getLongSummary
in class Show
public java.lang.String getShortSummary()
getShortSummary
in interface IShow
getShortSummary
in class Show
public java.util.List<java.lang.String> getGenres()
getGenres
in interface IVideoGenre
getGenres
in class Show
public java.lang.String getName()
getName
in interface IShow
getName
in class Show
public java.lang.String getShowId()
getShowId
in interface IShow
getShowId
in class Show
public java.net.URL getImageURL()
getImageURL
in interface IShow
getImageURL
in class Show
public void setImageURL(java.net.URL imageURL)
setImageURL
in interface IShow
setImageURL
in class Show
imageURL
- A URL which points too a image of the showpublic java.net.URL getShowURL()
getShowURL
in interface IShow
getShowURL
in class Show
public java.lang.String getSourceId()
getSourceId
in interface IShow
getSourceId
in class Show
public void setSourceId(java.lang.String sourceId)
setSourceId
in interface IShow
setSourceId
in class Show
sourceId
- The source idpublic void addGenre(java.lang.String genre)
addGenre
in interface IVideoGenre
addGenre
in class Show
genre
- The genrepublic java.lang.String getPreferredGenre()
getPreferredGenre
in interface IVideoGenre
getPreferredGenre
in class Show
public void setPreferredGenre(java.lang.String preferredGenre)
setPreferredGenre
in interface IVideoGenre
setPreferredGenre
in class Show
preferredGenre
- The preferred genrepublic java.util.Map<java.lang.String,java.lang.String> getExtraInfo()
getExtraInfo
in interface IVideoExtra
getExtraInfo
in class Show
public void setExtraInfo(java.util.Map<java.lang.String,java.lang.String> params)
setExtraInfo
in interface IVideoExtra
setExtraInfo
in class Show
params
- The extra information in a map of key value pairspublic java.util.List<CacheSeason> getSeasons()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |