public class XMLVideo extends XMLParser implements IVideo, IVideoActors, IVideoRating
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
Constructor and Description |
---|
XMLVideo(org.w3c.dom.Element node,
java.io.File rootMediaDir)
The constructor
|
Modifier and Type | Method and Description |
---|---|
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.List<VideoFile> |
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.List<VideoFile> 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
|
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
public XMLVideo(org.w3c.dom.Element node, java.io.File rootMediaDir)
node
- The node with video datarootMediaDir
- The root media dirpublic java.util.List<Actor> getActors()
getActors
in interface IVideoActors
public void setActors(java.util.List<Actor> actors)
setActors
in interface IVideoActors
actors
- The list of actors in the filmpublic java.util.List<java.lang.String> getWriters()
getWriters
in interface IVideo
public void setWriters(java.util.List<java.lang.String> writers)
setWriters
in interface IVideo
writers
- The list of writerspublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.util.List<java.lang.String> getDirectors()
getDirectors
in interface IVideo
public void setDirectors(java.util.List<java.lang.String> directors)
setDirectors
in interface IVideo
directors
- The list of directors for the episodepublic java.lang.String getSummary()
getSummary
in interface IVideo
public void setSummary(java.lang.String summary)
setSummary
in interface IVideo
summary
- The films summarypublic java.util.List<VideoFile> getFiles()
public void setFiles(java.util.List<VideoFile> videoFiles)
public Rating getRating()
getRating
in interface IVideoRating
public void setRating(Rating rating)
setRating
in interface IVideoRating
rating
- The rating