public class Program extends Object
Only EpgClient can instantiate objects of this class
When there's a discrepancy between the descriptions of data found in this source code and that found here then the latter web source will always take precedence!
| Modifier and Type | Class and Description |
|---|---|
static class |
Program.ColorCode
The color code of a program
|
static class |
Program.Credit
Represents a credit in a program
|
static class |
Program.Role
Represents the role of cast & crew members of a program
|
static class |
Program.SourceType
Represents the source of a program
|
static class |
Program.Team |
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_PROGRAM
An empty Program object as a JSON string
|
static Pattern |
MOVIE_REGEX |
static SimpleDateFormat |
ORIG_FMT
The expected format of the original airing field
|
public static final String EMPTY_PROGRAM
public static final SimpleDateFormat ORIG_FMT
public static final Pattern MOVIE_REGEX
public List<Map<String,Object>> getMetadata()
public String[] getGenres()
public String getId()
public boolean isMadeForTv()
public String getDescription()
public String getEpisodeTitle()
public String getTitle()
public Date getOriginalAirDate()
public String getDescriptionLanguage()
public Program.SourceType getSourceType()
public String getSyndicatedEpisodeNumber()
public Program.ColorCode getColorCode()
public String[] getAdvisories()
public String getAlternateEpisodeNumber()
public String getAlternateTitle()
public Program.Credit[] getCredits()
public String getAlternateDescription()
public String getAlternateDescriptionShort()
public String[] getShortDescriptions()
public Date getGameStart()
public String getHoliday()
public String getMd5()
public ContentRating[] getRatings()
public String getCountryOfOrigin()
public String getStudio()
public int getRunTime()
public String getStarRating()
public float getStarRatingValue()
protected float calcStarValue()
throws ParseException
ParseException - If an invalid character is encountered in the received stringpublic String getEpisodeNumber()
public String[] getShortTitles()
public int getYear()
public void setId(String id)
id - the id to setpublic void setMadeForTv(boolean madeForTv)
madeForTv - the madeForTv to setpublic void setDescription(String description)
description - the description to setpublic void setEpisodeTitle(String episodeTitle)
episodeTitle - the episodeTitle to setpublic void setTitle(String title)
title - the title to setpublic void setOriginalAirDate(Date originalAirDate)
originalAirDate - the originalAirDate to setpublic void setDescriptionLanguage(String descriptionLanguage)
descriptionLanguage - the descriptionLanguage to setpublic void setSourceType(Program.SourceType sourceType)
sourceType - the sourceType to setpublic void setSyndicatedEpisodeNumber(String syndicatedEpisodeNumber)
syndicatedEpisodeNumber - the syndicatedEpisodeNumber to setpublic void setColorCode(Program.ColorCode colorCode)
colorCode - the colorCode to setpublic void setAdvisories(String[] advisories)
advisories - the advisories to setpublic void setAlternateEpisodeNumber(String alternateEpisodeNumber)
alternateEpisodeNumber - the alternateEpisodeNumber to setpublic void setAlternateTitle(String alternateTitle)
alternateTitle - the alternateTitle to setpublic void setCredits(Program.Credit[] credits)
credits - the credits to setpublic void setAlternateDescription(String alternateDescription)
alternateDescription - the alternateDescription to setpublic void setAlternateDescriptionShort(String alternateDescriptionShort)
alternateDescriptionShort - the alternateDescriptionShort to setpublic void setShortDescriptions(String[] shortDescriptions)
shortDescriptions - the shortDescriptions to setpublic void setGameStart(Date gameStart)
gameStart - the gameStart to setpublic void setHoliday(String holiday)
holiday - the holiday to setpublic void setMd5(String md5)
md5 - the md5 to setpublic void setRatings(ContentRating[] ratings)
mpaaRating - the mpaaRating to setpublic void setCountryOfOrigin(String countryOfOrigin)
countryOfOrigin - the countryOfOrigin to setpublic void setStudio(String studio)
studio - the studio to setpublic void setRunTime(int runTime)
runTime - the runTime to setpublic void setStarRating(String starRating) throws ParseException
starRating - the starRating to setParseException - Thrown if the arugment is not a valid star rating stringpublic void setEpisodeNumber(String episodeNumber)
episodeNumber - the episodeNumber to setpublic void setShortTitles(String[] shortTitles)
shortTitles - the shortTitles to setpublic void setYear(int year)
year - the year to setpublic void setGenres(String[] genres)
genres - the genres to setpublic void setMetadata(List<Map<String,Object>> metadata)
metadata - the metadata to setpublic String getSeriesDescription()
public void setSeriesDescription(String seriesDescription)
seriesDescription - the seriesDescription to setpublic String getVenue()
public void setVenue(String venue)
venue - the venue to setpublic Program.Team[] getTeams()
public void setTeams(Program.Team[] teams)
teams - the teams to setCopyright © 2012-2014 Battams, Derek. All Rights Reserved.