|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.playlist.xspf.Playlist
public class Playlist
XSPF, an XML format designed to enable playlist sharing.
Constructor Summary | |
---|---|
Playlist()
|
Method Summary | |
---|---|
void |
addExtension(Object extension)
Adds an extension to this playlist. |
void |
addLink(Link link)
Adds a link to this playlist. |
void |
addMeta(Meta meta)
Adds a metadata to this playlist. |
void |
addTrack(Track track)
Adds a track to this playlist. |
String |
getAnnotation()
Returns a human-readable comment on the playlist. |
Attribution |
getAttribution()
Returns the playlist's attribution. |
String |
getCreator()
Returns a human-readable name of the entity (author, authors, group, company, etc) that authored the playlist. |
Date |
getDate()
Returns a creation date (not last-modified date) of the playlist. |
List<AnyNode> |
getExtensions()
Returns a list of playlist extensions. |
String |
getIdentifier()
Returns a canonical ID for this playlist. |
String |
getImage()
Returns an URI of an image to display in the absence of a //playlist/trackList/image element. |
String |
getInfo()
Returns an URI of a web page to find out more about this playlist. |
String |
getLicense()
Returns an URI of a resource that describes the license under which this playlist was released. |
List<Link> |
getLinks()
Returns the list of links defined in this playlist. |
String |
getLocation()
Returns a source URI for this playlist. |
List<Meta> |
getMetas()
Returns the list of metadata defined in this playlist. |
SpecificPlaylistProvider |
getProvider()
Returns the provider of this specific playlist. |
String |
getTitle()
Returns a human-readable title for the playlist. |
List<Track> |
getTracks()
Returns an ordered list of xspf:track elements to be rendered. |
Integer |
getVersion()
Returns the version number. |
void |
setAnnotation(String annotation)
Initializes a human-readable comment on the playlist. |
void |
setAttribution(Attribution attribution)
Initializes this playlist's attribution. |
void |
setCreator(String creator)
Initializes a human-readable name of the entity (author, authors, group, company, etc) that authored the playlist. |
void |
setDate(Date date)
Initializes a creation date (not last-modified date) of the playlist. |
void |
setIdentifier(String identifier)
Initializes a canonical ID for this playlist. |
void |
setImage(String image)
Initializes an URI of an image to display in the absence of a //playlist/trackList/image element. |
void |
setInfo(String info)
Initializes an URI of a web page to find out more about this playlist. |
void |
setLicense(String license)
Initializes an URI of a resource that describes the license under which this playlist was released. |
void |
setLocation(String location)
Initializes a source URI for this playlist. |
void |
setProvider(SpecificPlaylistProvider provider)
Initializes the provider of this specific playlist. |
void |
setTitle(String title)
Initializes a human-readable title for the playlist. |
void |
setVersion(Integer version)
Initializes the version number. |
Playlist |
toPlaylist()
Builds a generic representation from this specific playlist. |
void |
writeTo(OutputStream out,
String encoding)
Writes this specific playlist to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Playlist()
Method Detail |
---|
public void setProvider(SpecificPlaylistProvider provider)
SpecificPlaylist
setProvider
in interface SpecificPlaylist
provider
- the provider of this playlist. Shall not be null
.SpecificPlaylist.getProvider()
public SpecificPlaylistProvider getProvider()
SpecificPlaylist
getProvider
in interface SpecificPlaylist
null
.SpecificPlaylist.setProvider(christophedelory.playlist.SpecificPlaylistProvider)
public void writeTo(OutputStream out, String encoding) throws Exception
SpecificPlaylist
writeTo
in interface SpecificPlaylist
out
- an output stream. Shall not be null
.encoding
- the content encoding of the output resource, or null
if not known.
NullPointerException
- if out
is null
.
Exception
- if any error occurs during the marshalling process.SpecificPlaylistFactory.readFrom(java.net.URL)
,
SpecificPlaylistProvider.readFrom(java.io.InputStream, java.lang.String, org.apache.commons.logging.Log)
public Playlist toPlaylist()
SpecificPlaylist
toPlaylist
in interface SpecificPlaylist
null
.SpecificPlaylistProvider.toSpecificPlaylist(christophedelory.playlist.Playlist)
public Integer getVersion()
null
.setVersion(java.lang.Integer)
public void setVersion(Integer version)
version
- a version number. Shall not be null
.
NullPointerException
- if version
is null
.getVersion()
public String getTitle()
null
.setTitle(java.lang.String)
public void setTitle(String title)
title
- a title. May be null
.getTitle()
public String getCreator()
null
.setCreator(java.lang.String)
public void setCreator(String creator)
creator
- a creator. May be null
.getCreator()
public String getAnnotation()
null
.setAnnotation(java.lang.String)
public void setAnnotation(String annotation)
annotation
- an annotation. May be null
.getAnnotation()
public String getInfo()
null
.setInfo(java.lang.String)
public void setInfo(String info)
info
- an information. May be null
.getInfo()
public String getLocation()
null
.setLocation(java.lang.String)
public void setLocation(String location)
location
- a location. May be null
.getLocation()
public String getIdentifier()
null
.setIdentifier(java.lang.String)
public void setIdentifier(String identifier)
identifier
- an identifier. May be null
.getIdentifier()
public String getImage()
null
.setImage(java.lang.String)
public void setImage(String image)
image
- an image. May be null
.getImage()
public Date getDate()
null
.setDate(java.util.Date)
public void setDate(Date date)
date
- a date. May be null
.getDate()
public String getLicense()
null
.setLicense(java.lang.String)
public void setLicense(String license)
license
- a license. May be null
.getLicense()
public Attribution getAttribution()
null
.setAttribution(christophedelory.playlist.xspf.Attribution)
public void setAttribution(Attribution attribution)
attribution
- an attribution. May be null
.getAttribution()
public List<AnyNode> getExtensions()
null
.addExtension(java.lang.Object)
public void addExtension(Object extension)
Object
just because it's what the Castor framework expects.
extension
- an extension. Shall not be null
.
NullPointerException
- if extension
is null
.
IllegalArgumentException
- if extension
is not an AnyNode
instance.
IllegalArgumentException
- if no "application" attribute can be found in the specified extension element.getExtensions()
public void addLink(Link link)
link
- a link. Shall not be null
NullPointerException
- if link
is null
.getLinks()
public List<Link> getLinks()
null
.addLink(christophedelory.playlist.xspf.Link)
public void addMeta(Meta meta)
meta
- a metadata. Shall not be null
NullPointerException
- if meta
is null
.getMetas()
public List<Meta> getMetas()
null
.addMeta(christophedelory.playlist.xspf.Meta)
public void addTrack(Track track)
track
- a track. Shall not be null
NullPointerException
- if track
is null
.getTracks()
public List<Track> getTracks()
null
.addTrack(christophedelory.playlist.xspf.Track)
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |