org.stanwood.media.store.xmlstore
Class XMLSeason

java.lang.Object
  extended by org.stanwood.media.xml.XMLParser
      extended by org.stanwood.media.store.xmlstore.XMLSeason
All Implemented Interfaces:
ISeason

public class XMLSeason
extends XMLParser
implements ISeason

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
XMLSeason(IShow show, org.w3c.dom.Element seasonNode)
          The constructor
 
Method Summary
 int getSeasonNumber()
          Get the number of the season
 IShow getShow()
          Get the show the season belongs too
 java.net.URL getURL()
          Used to get the episode listing URL for the season
 void setURL(java.net.URL url)
          Sets the episode listing URL for the season
 
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
 

Constructor Detail

XMLSeason

public XMLSeason(IShow show,
                 org.w3c.dom.Element seasonNode)
The constructor

Parameters:
show - The show
seasonNode - The season xml node
Method Detail

getURL

public java.net.URL getURL()
Used to get the episode listing URL for the season

Specified by:
getURL in interface ISeason
Returns:
The episode listing URL for the season

setURL

public void setURL(java.net.URL url)
Sets the episode listing URL for the season

Specified by:
setURL in interface ISeason
Parameters:
url - The episode listing URL for the season

getSeasonNumber

public int getSeasonNumber()
Get the number of the season

Specified by:
getSeasonNumber in interface ISeason
Returns:
The season number

getShow

public IShow getShow()
Get the show the season belongs too

Specified by:
getShow in interface ISeason
Returns:
The show the season belongs too