|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLParser
org.stanwood.media.store.xmlstore.XMLVideo
org.stanwood.media.store.xmlstore.XMLFilm
public class XMLFilm
This is a Film object that talks directory to the DOM of the XML store
Field Summary |
---|
Fields inherited from class org.stanwood.media.xml.XMLParser |
---|
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION |
Constructor Summary | |
---|---|
XMLFilm(org.w3c.dom.Element node,
java.io.File rootMediaDir)
The constructor |
Method Summary | |
---|---|
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 |
setFilmUrl(java.net.URL url)
Used to set the URL used to get a summary of the film |
void |
setGenres(java.util.List<java.lang.String> genres)
Used to set the genres that the film belongs too |
void |
setId(java.lang.String id)
Used to set the id of the film used by the source that it was read from. |
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 |
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 |
---|
public XMLFilm(org.w3c.dom.Element node, java.io.File rootMediaDir)
node
- The node with video datarootMediaDir
- The root media dirMethod Detail |
---|
public 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()
getId
in interface IFilm
public void setId(java.lang.String id)
setId
in interface IFilm
id
- The id of the filmpublic java.lang.String getSourceId()
getSourceId
in interface IFilm
public void setSourceId(java.lang.String sourceId)
setSourceId
in interface IFilm
sourceId
- The source idpublic void setFilmUrl(java.net.URL url)
setFilmUrl
in interface IFilm
url
- The summary URLpublic 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()
getDate
in interface IFilm
public void setDate(java.util.Date date)
setDate
in interface IFilm
date
- The release date of the filmpublic 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()
getStudio
in interface IFilm
public void setStudio(java.lang.String studio)
setStudio
in interface IFilm
studio
- the films studio
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |