org.stanwood.media.store.xmlstore
Class XMLEpisode

java.lang.Object
  extended by org.stanwood.media.xml.XMLParser
      extended by org.stanwood.media.store.xmlstore.XMLVideo
          extended by org.stanwood.media.store.xmlstore.XMLEpisode
All Implemented Interfaces:
IEpisode, IVideo, IVideoActors, IVideoRating

public class XMLEpisode
extends XMLVideo
implements IEpisode

Episode information for the store XMLStore2, that access the information from the XML File


Field Summary
 
Fields inherited from class org.stanwood.media.xml.XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
 
Constructor Summary
XMLEpisode(ISeason season, org.w3c.dom.Element node, java.io.File rootMediaDir)
          The constructor
 
Method Summary
 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.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 setImageURL(java.net.URL imageURL)
          Used to set a URL which points too a image of the episode
 void setUrl(java.net.URL url)
          Used to set the URL used to get a summary of the show
 
Methods inherited from class org.stanwood.media.store.xmlstore.XMLVideo
getActors, getDirectors, getFiles, getRating, getSummary, getTitle, getWriters, setActors, setDirectors, setFiles, setRating, setSummary, setTitle, setWriters
 
Methods inherited from class org.stanwood.media.xml.XMLParser
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.stanwood.media.model.IVideo
getDirectors, getFiles, getSummary, getTitle, getWriters, setDirectors, setFiles, setSummary, setTitle, setWriters
 
Methods inherited from interface org.stanwood.media.model.IVideoActors
getActors, setActors
 
Methods inherited from interface org.stanwood.media.model.IVideoRating
getRating, setRating
 

Constructor Detail

XMLEpisode

public XMLEpisode(ISeason season,
                  org.w3c.dom.Element node,
                  java.io.File rootMediaDir)
The constructor

Parameters:
season - The season
node - The episode XML node
rootMediaDir - The media directory location
Method Detail

getSeason

public ISeason getSeason()
Get the season the episode belongs too

Specified by:
getSeason in interface IEpisode
Returns:
The season the episode belongs too

getEpisodeNumber

public int getEpisodeNumber()
Gets the number of the episode.

Specified by:
getEpisodeNumber in interface IEpisode
Returns:
The number of the episode

setEpisodeNumber

public void setEpisodeNumber(int episodeNumner)
Sets the number of the episode.

Specified by:
setEpisodeNumber in interface IEpisode

setDate

public void setDate(java.util.Date airDate)
Sets the air date of the show

Specified by:
setDate in interface IEpisode
Parameters:
airDate - The air date of the show

getDate

public java.util.Date getDate()
Gets the first air date of the episode

Specified by:
getDate in interface IEpisode
Returns:
The first air date of the episode

isSpecial

public boolean isSpecial()
Used to find out if this is a special

Specified by:
isSpecial in interface IEpisode
Returns:
True if special, otherwise false

setUrl

public void setUrl(java.net.URL url)
Used to set the URL used to get a summary of the show

Specified by:
setUrl in interface IEpisode
Parameters:
url - The summary URL

getUrl

public java.net.URL getUrl()
Used to get the URL used to get a summary of the show

Specified by:
getUrl in interface IEpisode
Returns:
The summary URL

getEpisodeId

public java.lang.String getEpisodeId()
Used to get the numeric unique episode id used by the source

Specified by:
getEpisodeId in interface IEpisode
Returns:
the numeric unique episode id used by the source

setEpisodeId

public void setEpisodeId(java.lang.String episodeId)
Used to set the numeric unique episode id used by the source

Specified by:
setEpisodeId in interface IEpisode
Parameters:
episodeId - The numeric unique episode id used by the source

setImageURL

public void setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the episode

Specified by:
setImageURL in interface IEpisode
Parameters:
imageURL - A URL which points too a image of the episode

getImageURL

public java.net.URL getImageURL()
Used to get a URL which points to a image of the episode

Specified by:
getImageURL in interface IEpisode
Returns:
A URL which points too a image of the episode