public class XMLEpisode extends XMLVideo implements IEpisode
XMLStore2
, that access the information from the XML FileDTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
Constructor and Description |
---|
XMLEpisode(ISeason season,
org.w3c.dom.Element node,
java.io.File rootMediaDir)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Gets the first air date of the episode
|
java.lang.String |
getEpisodeId()
Used to get the numeric unique episode id used by the source
|
int |
getEpisodeNumber()
Gets the number of the episode.
|
java.util.List<java.lang.Integer> |
getEpisodes()
Used to get the episode numbers that this episode contains
|
java.net.URL |
getImageURL()
Used to get a URL which points to a image of the episode
|
ISeason |
getSeason()
Get the season the episode belongs too
|
java.net.URL |
getUrl()
Used to get the URL used to get a summary of the show
|
boolean |
isSpecial()
Used to find out if this is a special
|
void |
setDate(java.util.Date airDate)
Sets the air date of the show
|
void |
setEpisodeId(java.lang.String episodeId)
Used to set the numeric unique episode id used by the source
|
void |
setEpisodeNumber(int episodeNumner)
Sets the number of the episode.
|
void |
setEpisodes(java.util.List<java.lang.Integer> epsiodes)
Used to set the episode numbers that this episode contains
|
void |
setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the episode
|
void |
setSpecial(boolean special)
Used to flag this as a special episode
|
void |
setUrl(java.net.URL url)
Used to set the URL used to get a summary of the show
|
getActors, getDirectors, getFiles, getRating, getSummary, getTitle, getWriters, setActors, setDirectors, setFiles, setRating, setSummary, setTitle, setWriters
createDocBuilder, createFactory, deleteNode, domToStr, domToStrNoXMLProlog, encodeAttributeValue, firstChild, fixXMl, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectors, getFiles, getSummary, getTitle, getWriters, setDirectors, setFiles, setSummary, setTitle, setWriters
getActors, setActors
getRating, setRating
public XMLEpisode(ISeason season, org.w3c.dom.Element node, java.io.File rootMediaDir)
season
- The seasonnode
- The episode XML noderootMediaDir
- The media directory locationpublic ISeason getSeason()
public int getEpisodeNumber()
getEpisodeNumber
in interface IEpisode
public void setEpisodeNumber(int episodeNumner)
setEpisodeNumber
in interface IEpisode
public void setDate(java.util.Date airDate)
public java.util.Date getDate()
public boolean isSpecial()
public void setSpecial(boolean special)
setSpecial
in interface IEpisode
special
- The special value to setpublic void setUrl(java.net.URL url)
public java.net.URL getUrl()
public java.lang.String getEpisodeId()
getEpisodeId
in interface IEpisode
public void setEpisodeId(java.lang.String episodeId)
setEpisodeId
in interface IEpisode
episodeId
- The numeric unique episode id used by the sourcepublic void setImageURL(java.net.URL imageURL)
setImageURL
in interface IEpisode
imageURL
- A URL which points too a image of the episodepublic java.net.URL getImageURL()
getImageURL
in interface IEpisode
public java.util.List<java.lang.Integer> getEpisodes()
getEpisodes
in interface IEpisode
public void setEpisodes(java.util.List<java.lang.Integer> epsiodes)
setEpisodes
in interface IEpisode
epsiodes
- the episode numbers that this episode contains