|
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.rmp.Package
public class Package
A Real Metadata Package.
Constructor Summary | |
---|---|
Package()
Builds a new and empty Real Metadata Package. |
Method Summary | |
---|---|
String |
getAction()
Returns the package action. |
Date |
getExpirationDate()
Returns the package expiration date. |
String |
getExpirationDateString()
Returns the package expiration date. |
Provider |
getPackageProvider()
Returns the package provider. |
SpecificPlaylistProvider |
getProvider()
Returns the provider of this specific playlist. |
Server |
getServer()
Returns the package server. |
String |
getSignature()
Returns the package signature. |
String |
getTarget()
Returns the package target. |
String |
getTitle()
Returns the package title. |
Tracklist |
getTracklist()
Returns the track list. |
void |
setAction(String action)
Initializes the package action. |
void |
setExpirationDate(Date expirationDate)
Initializes the package expiration date. |
void |
setExpirationDateString(String expirationDate)
Initializes the package expiration date. |
void |
setPackageProvider(Provider provider)
Initializes the package provider. |
void |
setProvider(SpecificPlaylistProvider provider)
Initializes the provider of this specific playlist. |
void |
setServer(Server server)
Initializes the package server. |
void |
setSignature(String signature)
Initializes the package signature. |
void |
setTarget(String target)
Initializes the package target. |
void |
setTitle(String title)
Initializes the package title. |
void |
setTracklist(Tracklist trackList)
Initializes the track list. |
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 Package()
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 String getTitle()
null
.setTitle(java.lang.String)
public void setTitle(String title)
title
- a title. May be null
.getTitle()
public String getAction()
null
.setAction(java.lang.String)
public void setAction(String action)
action
- an action. May be null
.getAction()
public String getTarget()
null
.setTarget(java.lang.String)
public void setTarget(String target)
target
- a target. May be null
.getTarget()
public String getExpirationDateString()
null
.setExpirationDateString(java.lang.String)
,
getExpirationDate()
public void setExpirationDateString(String expirationDate) throws ParseException
expirationDate
- a date. Shall not be null
.
NullPointerException
- if expirationDate
is null
.
ParseException
- if the beginning of the specified string cannot be parsed.getExpirationDateString()
,
setExpirationDate(java.util.Date)
public Date getExpirationDate()
null
.setExpirationDate(java.util.Date)
,
getExpirationDateString()
public void setExpirationDate(Date expirationDate)
expirationDate
- a date. May be null
.getExpirationDate()
,
setExpirationDateString(java.lang.String)
public Provider getPackageProvider()
null
.setPackageProvider(christophedelory.playlist.rmp.Provider)
public void setPackageProvider(Provider provider)
provider
- a provider. May be null
.getPackageProvider()
public Server getServer()
null
.setServer(christophedelory.playlist.rmp.Server)
public void setServer(Server server)
server
- a server. Shall not be null
.
NullPointerException
- if server
is null
.getServer()
public Tracklist getTracklist()
null
.setTracklist(christophedelory.playlist.rmp.Tracklist)
public void setTracklist(Tracklist trackList)
trackList
- a track list. Shall not be null
.
NullPointerException
- if trackList
is null
.getTracklist()
public String getSignature()
null
.setSignature(java.lang.String)
public void setSignature(String signature)
signature
- a signature. May be null
.getSignature()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |