de.axelwernicke.mypod
Class AutoPlaylist

java.lang.Object
  extended byde.axelwernicke.mypod.Playlist
      extended byde.axelwernicke.mypod.AutoPlaylist
All Implemented Interfaces:
java.io.Serializable

public class AutoPlaylist
extends Playlist
implements java.io.Serializable

A Paylist that contains music for specific artists or genres.

Author:
axel wernicke
See Also:
Serialized Form

Constructor Summary
AutoPlaylist()
          Default constructor for an autoplaylist
AutoPlaylist(java.lang.String _name)
          Creates a new instance of AutoPlaylist.
 
Method Summary
 java.util.Vector getAlbumFilter()
          Getter for property albumFilter.
 java.util.Vector getArtistFilter()
          gets the artistfilter for the autoplaylist.
 java.util.Vector getGenreFilter()
          gets the artistfilter for the autoplaylist.
 java.util.Vector getYearFilter()
          gets the year filter for the autoplaylist.
 boolean isAlbumFilterEnabled()
          Getter for property albumFilterEnabled.
 boolean isArtistFilterEnabled()
          Checks if artist filter is enabled
 boolean isGenreFilterEnabled()
          Checks if genre filter is enabled
 boolean isYearFilterEnabled()
          Checks if year filter is enabled
 void setAlbumFilter(java.util.Vector albumFilter)
          Setter for property albumFilter.
 void setAlbumFilterEnabled(boolean albumFilterEnabled)
          Setter for property albumFilterEnabled.
 void setArtistFilter(java.util.Vector value)
          Sets an artist filter.
 void setArtistFilterEnabled(boolean value)
          Enables artist filter.
 void setGenreFilter(java.util.Vector value)
          Sets a genre filter
 void setGenreFilterEnabled(boolean value)
          enables genre filter
 void setYearFilter(java.util.Vector value)
          Sets a year filter
 void setYearFilterEnabled(boolean value)
          enables year filter
protected  void update(java.util.Collection oids, DataPool dataPool)
          Updates the playlists content
 
Methods inherited from class de.axelwernicke.mypod.Playlist
addClip, addClips, containsClip, getAllClips, getClipAt, getList, getName, getTotalClips, getTotalFilesize, getTotalTime, isAutoplaylist, isIPodSync, remove, remove, replaceClips, setIPodSync, setList, setName, setTotalFilesize, setTotalTime, toString, validateTotalFilesize, validateTotalTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoPlaylist

public AutoPlaylist()
Default constructor for an autoplaylist


AutoPlaylist

public AutoPlaylist(java.lang.String _name)
Creates a new instance of AutoPlaylist.

Parameters:
_name - name for the new playlist
Method Detail

setArtistFilter

public void setArtistFilter(java.util.Vector value)
Sets an artist filter.

Parameters:
value - list of artists to show in an autoplaylist

getArtistFilter

public java.util.Vector getArtistFilter()
gets the artistfilter for the autoplaylist.

Returns:
the artist filter for the autoplaylist

setYearFilter

public void setYearFilter(java.util.Vector value)
Sets a year filter

Parameters:
value - list of artists to show in an autoplaylist

getYearFilter

public java.util.Vector getYearFilter()
gets the year filter for the autoplaylist.

Returns:
the year filter for the autoplaylist

setGenreFilter

public void setGenreFilter(java.util.Vector value)
Sets a genre filter

Parameters:
value - list of genres to show in an autoplaylist

getGenreFilter

public java.util.Vector getGenreFilter()
gets the artistfilter for the autoplaylist.

Returns:
the artistfilter for the autoplaylist

setArtistFilterEnabled

public void setArtistFilterEnabled(boolean value)
Enables artist filter.

Parameters:
value - true to enable artist filter

setGenreFilterEnabled

public void setGenreFilterEnabled(boolean value)
enables genre filter

Parameters:
value - true to eaname genre filter

setYearFilterEnabled

public void setYearFilterEnabled(boolean value)
enables year filter

Parameters:
value - true to enable year filter

isArtistFilterEnabled

public boolean isArtistFilterEnabled()
Checks if artist filter is enabled

Returns:
Checks if artist filter is enabled

isGenreFilterEnabled

public boolean isGenreFilterEnabled()
Checks if genre filter is enabled

Returns:
Checks if genre filter is enabled

isYearFilterEnabled

public boolean isYearFilterEnabled()
Checks if year filter is enabled

Returns:
Checks if year filter is enabled

update

protected void update(java.util.Collection oids,
                      DataPool dataPool)
Updates the playlists content

Parameters:
oids - to update the playlist against
dataPool - to get data from

getAlbumFilter

public java.util.Vector getAlbumFilter()
Getter for property albumFilter.

Returns:
Value of property albumFilter.

setAlbumFilter

public void setAlbumFilter(java.util.Vector albumFilter)
Setter for property albumFilter.

Parameters:
albumFilter - New value of property albumFilter.

isAlbumFilterEnabled

public boolean isAlbumFilterEnabled()
Getter for property albumFilterEnabled.

Returns:
Value of property albumFilterEnabled.

setAlbumFilterEnabled

public void setAlbumFilterEnabled(boolean albumFilterEnabled)
Setter for property albumFilterEnabled.

Parameters:
albumFilterEnabled - New value of property albumFilterEnabled.