|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 SmartPlaylist
public void setName(java.lang.String name)
Playlist
Playlist.getName()
(optional operation)
setName
in interface Playlist
public java.lang.String getName()
Playlist
getName
in interface Playlist
public int getUniqueID()
Playlist
getUniqueID
in interface Playlist
public int getRevision()
Playlist
getRevision
in interface Playlist
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasTrack(Track track)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getQuery()
SmartPlaylist
getQuery
in interface SmartPlaylist
public 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 Playlist
sort
- 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 |