com.dt.iTunesController
Class ITPlaylistCollection

java.lang.Object
  extended by com.dt.iTunesController.ITPlaylistCollection

public class ITPlaylistCollection
extends java.lang.Object

Represents a collection of playlist objects. Note that collection indices are always 1-based. You can retrieve all the playlists defined for a source using ITSource.getPlaylists().


Constructor Summary
ITPlaylistCollection(com.jacob.com.Dispatch d)
           
 
Method Summary
 int getCount()
          Returns the number of playlists in the collection.
 ITPlaylist getItem(int index)
          Returns an ITPlaylist object corresponding to the given index (1-based).
 ITPlaylist getItemByPersistentID(int highID, int lowID)
          Returns an ITPlaylist object with the specified persistent ID.
 ITPlaylist ItemByName(java.lang.String name)
          Returns an ITPlaylist object withthe specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITPlaylistCollection

public ITPlaylistCollection(com.jacob.com.Dispatch d)
Method Detail

getCount

public int getCount()
Returns the number of playlists in the collection.

Returns:
Returns the number of playlists in the collection.

getItem

public ITPlaylist getItem(int index)
Returns an ITPlaylist object corresponding to the given index (1-based).

Parameters:
index - Index of the playlist to retrieve, must be less than or equal to ITPlaylistCollection.getCount().
Returns:
Returns an ITPlaylist object corresponding to the given index. Will be set to NULL if no playlist could be retrieved.

ItemByName

public ITPlaylist ItemByName(java.lang.String name)
Returns an ITPlaylist object withthe specified name.

Parameters:
name - The name of the playlist to retrieve.
Returns:
Returns an ITPlaylist object corresponding to the given index. Will be set to NULL if no playlist could be retrieved.

getItemByPersistentID

public ITPlaylist getItemByPersistentID(int highID,
                                        int lowID)
Returns an ITPlaylist object with the specified persistent ID. See the documentation on ITObject for more information on persistent IDs.

Parameters:
highID - The high 32 bits of the 64-bit persistent ID.
lowID - The low 32 bits of the 64-bit persistent ID.
Returns:
Returns an ITPlaylist object with the specified persistent ID. Will be set to NULL if no playlist could be retrieved.