org.stanwood.media.store.xmlstore
Class XMLVideo

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

public class XMLVideo
extends XMLParser
implements IVideo, IVideoActors, IVideoRating

XML Video class that read/sets the information into a dom object


Field Summary
 
Fields inherited from class org.stanwood.media.xml.XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
 
Constructor Summary
XMLVideo(org.w3c.dom.Element node, java.io.File rootMediaDir)
          The constructor
 
Method Summary
 java.util.List<Actor> getActors()
          Used to get a list of actors in the video
 java.util.List<java.lang.String> getDirectors()
          Used to get a list of directors for the video
 java.util.Collection<IVideoFile> getFiles()
          Used to get a list of files that belong to the video entry
 Rating getRating()
          Used to get the rating of the video
 java.lang.String getSummary()
          Used to get a summary of the video
 java.lang.String getTitle()
          Used to get the video title.
 java.util.List<java.lang.String> getWriters()
          Used to get a list of writers for the video
 void setActors(java.util.List<Actor> actors)
          Used to set the list of actors in the film
 void setDirectors(java.util.List<java.lang.String> directors)
          Used to set a list of directors for the episode
 void setFiles(java.util.Collection<IVideoFile> videoFiles)
          Used to set the list of files that belong to the video entry
 void setRating(Rating rating)
          Used to set the rating of the video
 void setSummary(java.lang.String summary)
          Used to set the films summary
 void setTitle(java.lang.String title)
          Used to set the title of the video
 void setWriters(java.util.List<java.lang.String> writers)
          Used to set a list of writers for the video
 
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

XMLVideo

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

Parameters:
node - The node with video data
rootMediaDir - The root media dir
Method Detail

getActors

public java.util.List<Actor> getActors()
Used to get a list of actors in the video

Specified by:
getActors in interface IVideoActors
Returns:
The list of actors in the video

setActors

public void setActors(java.util.List<Actor> actors)
Used to set the list of actors in the film

Specified by:
setActors in interface IVideoActors
Parameters:
actors - The list of actors in the film

getWriters

public java.util.List<java.lang.String> getWriters()
Used to get a list of writers for the video

Specified by:
getWriters in interface IVideo
Returns:
Get a list of writers for the video

setWriters

public void setWriters(java.util.List<java.lang.String> writers)
Used to set a list of writers for the video

Specified by:
setWriters in interface IVideo
Parameters:
writers - The list of writers

getTitle

public java.lang.String getTitle()
Used to get the video title.

Specified by:
getTitle in interface IVideo
Returns:
The video title.

setTitle

public void setTitle(java.lang.String title)
Used to set the title of the video

Specified by:
setTitle in interface IVideo
Parameters:
title - The title of the video

getDirectors

public java.util.List<java.lang.String> getDirectors()
Used to get a list of directors for the video

Specified by:
getDirectors in interface IVideo
Returns:
A list of directors for the video

setDirectors

public void setDirectors(java.util.List<java.lang.String> directors)
Used to set a list of directors for the episode

Specified by:
setDirectors in interface IVideo
Parameters:
directors - The list of directors for the episode

getSummary

public java.lang.String getSummary()
Used to get a summary of the video

Specified by:
getSummary in interface IVideo
Returns:
The summary of the video

setSummary

public void setSummary(java.lang.String summary)
Used to set the films summary

Specified by:
setSummary in interface IVideo
Parameters:
summary - The films summary

getFiles

public java.util.Collection<IVideoFile> getFiles()
Used to get a list of files that belong to the video entry

Specified by:
getFiles in interface IVideo
Returns:
The list of files

setFiles

public void setFiles(java.util.Collection<IVideoFile> videoFiles)
Used to set the list of files that belong to the video entry

Specified by:
setFiles in interface IVideo
Parameters:
videoFiles - The list of files

getRating

public Rating getRating()
Used to get the rating of the video

Specified by:
getRating in interface IVideoRating
Returns:
The rating of the video

setRating

public void setRating(Rating rating)
Used to set the rating of the video

Specified by:
setRating in interface IVideoRating
Parameters:
rating - The rating