public class XMLFilm extends XMLVideo implements IFilm
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
Constructor and Description |
---|
XMLFilm(org.w3c.dom.Element node,
java.io.File rootMediaDir)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChapter(Chapter chapter)
Used to add a chapter to the film
|
void |
addGenre(java.lang.String genre)
Used to add a genre to the film
|
java.util.List<Certification> |
getCertifications()
Used to get a list of the films certifications
|
java.util.List<Chapter> |
getChapters()
Used to get the chapters of the film
|
java.lang.String |
getCountry()
This will return the country the film was made in, or
null if it's not known.
|
java.util.Date |
getDate()
Used to get the release date of the film
|
java.lang.String |
getDescription()
Used to get the films long description
|
java.net.URL |
getFilmUrl()
Used to get the URL used to get a summary of the film
|
java.util.List<java.lang.String> |
getGenres()
Used to get the genres that the film belongs too
|
java.lang.String |
getId()
Used to get the id of the film used by the source that it was read from.
|
java.net.URL |
getImageURL()
Used to get the URL of the film poster.
|
java.lang.String |
getPreferredGenre()
This is useful if the video belongs to more than one genres.
|
java.lang.String |
getSourceId()
Used to get the source id of the source that was used to retrieve the film information.
|
java.lang.String |
getStudio()
Used to get the films studio
|
void |
setCertifications(java.util.List<Certification> certifications)
Used to set the films certifications
|
void |
setChapters(java.util.List<Chapter> chapters)
Used to set the chapter information for the film
|
void |
setCountry(java.lang.String country)
Used to set the country the film was made in.
|
void |
setDate(java.util.Date date)
Used to set the release date of the film
|
void |
setDescription(java.lang.String description)
Used to set the films long description
|
void |
setGenres(java.util.List<java.lang.String> genres)
Used to set the genres that the film belongs too
|
void |
setImageURL(java.net.URL imageURL)
Used to set the URL of the film poster
|
void |
setPreferredGenre(java.lang.String preferredGenre)
Used to set the genre that is preferred in the list of genres.
|
void |
setSourceId(java.lang.String sourceId)
Used to set the source id of the source that was used to retrieve the film information.
|
void |
setStudio(java.lang.String studio)
Used to set the films studio
|
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 XMLFilm(org.w3c.dom.Element node, java.io.File rootMediaDir)
node
- The node with video datarootMediaDir
- The root media dirpublic void setGenres(java.util.List<java.lang.String> genres)
setGenres
in interface IVideoGenre
genres
- The genres that the film belongs toopublic java.util.List<java.lang.String> getGenres()
getGenres
in interface IVideoGenre
public void addGenre(java.lang.String genre)
addGenre
in interface IVideoGenre
genre
- the genre to addpublic java.lang.String getPreferredGenre()
getPreferredGenre
in interface IVideoGenre
public void setPreferredGenre(java.lang.String preferredGenre)
setPreferredGenre
in interface IVideoGenre
preferredGenre
- The preferred genrepublic java.lang.String getId()
public java.lang.String getSourceId()
getSourceId
in interface IFilm
public void setSourceId(java.lang.String sourceId)
setSourceId
in interface IFilm
sourceId
- The source idpublic java.net.URL getFilmUrl()
getFilmUrl
in interface IFilm
public java.util.List<Certification> getCertifications()
getCertifications
in interface IVideoCertification
public void setCertifications(java.util.List<Certification> certifications)
setCertifications
in interface IVideoCertification
certifications
- The films certificationspublic java.util.Date getDate()
public void setDate(java.util.Date date)
public void setImageURL(java.net.URL imageURL)
setImageURL
in interface IFilm
imageURL
- The URL of the film poster.public java.net.URL getImageURL()
getImageURL
in interface IFilm
public void addChapter(Chapter chapter)
addChapter
in interface IFilm
chapter
- The chapter to addpublic java.util.List<Chapter> getChapters()
getChapters
in interface IFilm
public void setChapters(java.util.List<Chapter> chapters)
setChapters
in interface IFilm
chapters
- The chapters of the filmpublic void setDescription(java.lang.String description)
setDescription
in interface IFilm
description
- The films long descriptionpublic java.lang.String getDescription()
getDescription
in interface IFilm
public java.lang.String getCountry()
getCountry
in interface IFilm
public void setCountry(java.lang.String country)
setCountry
in interface IFilm
country
- the country to setpublic java.lang.String getStudio()