|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bff.javampd.MPDSong
public class MPDSong
MPDSong represents a song in the MPD database that can be inserted into a playlist.
| Constructor Summary | |
|---|---|
MPDSong()
Creates a new instance of MPDSong |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Compares this MPDSong to the specified object. |
java.lang.String |
getAlbum()
Returns the name of the album. |
java.lang.String |
getArtist()
Returns the name of the artist. |
java.lang.String |
getComment()
Returns the comment tag of the song. |
java.lang.String |
getFile()
Returns the path of the song without a leading or trailing slash. |
java.lang.String |
getGenre()
Returns the genre of the song. |
int |
getId()
Returns the playlist song id for the song. |
int |
getLength()
Returns the length of the song in seconds. |
int |
getPosition()
Returns the position of the song in the playlist. |
java.lang.String |
getTitle()
Returns the name of the song. |
int |
getTrack()
Returns the track number of the song. |
java.lang.String |
getYear()
Returns the year of the song. |
int |
hashCode()
Returns the hash code for this object. |
void |
setAlbum(java.lang.String album)
Sets the name of the album. |
void |
setArtist(java.lang.String artist)
Sets the name of the artist. |
void |
setComment(java.lang.String comment)
Sets the comment tag of the song |
void |
setFile(java.lang.String path)
Sets the path of the song. |
void |
setGenre(java.lang.String genre)
Sets the genre of the song |
void |
setId(int id)
Sets the playlist song id for this MPDSong. |
void |
setLength(int length)
Sets the length of the song. |
void |
setPosition(int position)
Sets the playlist position for a song. |
void |
setTitle(java.lang.String title)
Sets the name of the song. |
void |
setTrack(int track)
Sets the track number of the song |
void |
setYear(java.lang.String year)
Sets the year of the song |
java.lang.String |
toString()
Returns the string representation of this MPDSong. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MPDSong()
| Method Detail |
|---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - the name of the songpublic java.lang.String getArtist()
public void setArtist(java.lang.String artist)
artist - the name of the artistpublic java.lang.String getAlbum()
public void setAlbum(java.lang.String album)
album - the name of the albumpublic java.lang.String getFile()
public void setFile(java.lang.String path)
path - the path of the songpublic int getLength()
public void setLength(int length)
length - the length of the song in secondspublic int getTrack()
public void setTrack(int track)
track - the track number of the songpublic java.lang.String getGenre()
public void setGenre(java.lang.String genre)
genre - the genre of the songpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - the comment tag of the songpublic java.lang.String getYear()
public void setYear(java.lang.String year)
year - the year of the songpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getPosition()
public int getId()
public void setPosition(int position)
position - the playlist positionpublic void setId(int id)
id - the playlist song idpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object to compare to
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||