Package com.jitcaforwin.basic.enums

Examples of com.jitcaforwin.basic.enums.ITPlaylistKind


   * @throws JitcaException
   *             if an error occurs.
   */
  public static Playlist createPlaylist(boolean lazy, Source source, IITPlaylist itPlaylist) {
    try{
    ITPlaylistKind kind = itPlaylist.getKind();

    if (kind.is(ITPlaylistKind.CD())) {
      return new AudioCDPlaylistImpl(source, (IITAudioCDPlaylist) itPlaylist);
    } else if (kind.is(ITPlaylistKind.User())) {
      return UserPlaylistImpl.createUserPlaylist(lazy, (UserLibrary) source, (IITUserPlaylist) itPlaylist);
    } else {
      return new PlaylistImpl(lazy, source, itPlaylist);
    }
    } catch (PlaylistDeletedException e){
View Full Code Here


  }
 
  public static IITPlaylist newIITPlaylist(DispatchObject o) throws JitcaGeneralException{
    try{
      ITPlaylistImpl playlist = new ITPlaylistImpl(o);
      ITPlaylistKind playlistKind = playlist.getKind();
     
      if (playlistKind.is(ITPlaylistKind.User())){
        return new ITUserPlaylistImpl(o);
      }
      else if (playlistKind.is(ITPlaylistKind.Library())){
        return  new ITLibraryPlaylistImpl(o);
      }
      else if (playlistKind.is(ITPlaylistKind.CD())){
        return new ITAudioCDPlaylistImpl(o);
      }
      else {
        return playlist;
      }
View Full Code Here

   
  }


  public ITPlaylistKind getKind() throws JitcaGeneralException {
    return new ITPlaylistKind(this.iTunesCom.getPropertyAsEnum("Kind"));
  }
View Full Code Here

  }

  public static IITPlaylist newIITPlaylist(DispatchObject o) {
    try {
      ITPlaylistImpl playlist = new ITPlaylistImpl(o);
      ITPlaylistKind playlistKind = playlist.getKind();

      if (playlistKind.is(ITPlaylistKind.User())) {
        return new ITUserPlaylistImpl(o);
      } else if (playlistKind.is(ITPlaylistKind.Library())) {
        return new ITLibraryPlaylistImpl(o);
      } else if (playlistKind.is(ITPlaylistKind.CD())) {
        return new ITAudioCDPlaylistImpl(o);
      } else {
        return playlist;
      }
    } catch (DispatchObjectNullException e) {
View Full Code Here

  }

  public ITPlaylistKind getKind() throws PlaylistDeletedException {
    try {
      return new ITPlaylistKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.enums.ITPlaylistKind

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.