|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtunes.db.spi.simple.SmartPlaylistImpl
public class SmartPlaylistImpl
A Playlist which determines it's tracks based on a filter. The
filter uses a TrackMatcher, so you can for example do
Album=~"Buzzin' Fly.*" or (Artist="Postal Service" or
artist=~"Death Cab.*") and Year > "2000".
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Return the name of the Playlist |
java.lang.String |
getQuery()
Return the Query used to determine the Playlist, The format of which depends on the implementation |
int |
getRevision()
Get the revision number of the Playlist. |
java.util.List<Track> |
getTracks()
Get the list of tracks in this Playlist |
int |
getUniqueID()
Get a unique ID for this playlist which should never change. |
int |
hashCode()
|
boolean |
hasTrack(Track track)
|
void |
setName(java.lang.String name)
Set the name of the Playlist, as returned by Playlist.getName() (optional operation) |
void |
setQuery(java.lang.String query)
Set the query string used to determine the Playlist. |
int |
size()
Get the number of tracks in this Paylist |
Playlist |
sort(java.lang.String sort,
java.lang.String filter)
Get a new Playlist based on the current one, but sorted and filtered as specified. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setQuery(java.lang.String query)
SmartPlaylist
setQuery in interface SmartPlaylistpublic void setName(java.lang.String name)
PlaylistPlaylist.getName() (optional operation)
setName in interface Playlistpublic java.lang.String getName()
Playlist
getName in interface Playlistpublic int getUniqueID()
Playlist
getUniqueID in interface Playlistpublic int getRevision()
Playlist
getRevision in interface Playlistpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean hasTrack(Track track)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getQuery()
SmartPlaylist
getQuery in interface SmartPlaylistpublic java.util.List<Track> getTracks()
Playlist
getTracks in interface Playlist
public Playlist sort(java.lang.String sort,
java.lang.String filter)
Playlist
sort in interface Playlistsort - the field to sort by, eg "Title", "Artist", or null for no sortingfilter - the text to filter on, or null for no filteringpublic int size()
Playlist
size in interface Playlist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||