Package com.jitcaforwin.extended.api.playlist

Examples of com.jitcaforwin.extended.api.playlist.Playlist


   * Returns the extended playlist object based on the basic iTunes playlist object.
   * @param itPlaylist The basic iTunes playlist object.
   * @return The extended playlist object based on the basic iTunes playlist object.
   */
  public Playlist getPlaylist(IITPlaylist itPlaylist) {
    Playlist playlist = this.playlists.get(itPlaylist);
    if (playlist == null) {
      playlist = this.createPlaylist(itPlaylist);
    }
    return playlist;
  }
View Full Code Here


   * Creates a new extended playlist object based on the basic iTunes playlist object.
   * @param itPlaylist The basic iTunes playlist object.
   * @return The extended playlist object based on the basic iTunes playlist object.
   */
  private Playlist createPlaylist(IITPlaylist itPlaylist) {
    Playlist playlist = PlaylistImpl.createPlaylist(this.lazy, this.source, itPlaylist);
    this.playlists.put(playlist);
    return playlist;
  }
View Full Code Here

   * @param folder Basic iTunes folder object corresponding to the new folder.
   * @return The new folder.
   * @throws JitcaException if an error occurs.
   */
  private PlaylistFolder createFolder(IITPlaylist folder) throws JitcaException {
    Playlist newFolder = this.createPlaylist(folder);
    if (!newFolder.isPlaylistFolder()) {
      throw new PlaylistException("Problem occured during creation of new folder \"" + folder.getName() + "\" ");
    }
    return (PlaylistFolderImpl) newFolder;
  }
View Full Code Here

   * @param playlist Basic iTunes playlist object corresponding to the new playlist.
   * @return The new playlist
   * @throws JitcaException if an error occurs.
   */
  private UserPlaylist createUserPlaylist(IITPlaylist playlist) throws JitcaException {
    Playlist newPlaylist = this.createPlaylist(playlist);
    if (!newPlaylist.isUserPlaylist()) {
      throw new PlaylistException("Problem occured during creation of new playlist \"" + playlist.getName() + "\" ");
    }
    return (UserPlaylistImpl) newPlaylist;
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.api.playlist.Playlist

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.