com.dt.iTunesController
Class ITSourceCollection

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

public class ITSourceCollection
extends java.lang.Object

Represents a collection of source objects. Note that collection indices are always 1-based. You can retrieve all the sources using ITSource.getSources().


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

Constructor Detail

ITSourceCollection

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

getCount

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

Returns:
Returns the number of sources in the collection.

getItem

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

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

ItemByName

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

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

getItemByPersistentID

public ITSource getItemByPersistentID(int highID,
                                      int lowID)
Returns an ITSource 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 ITSource object with the specified persistent ID. Will be set to NULL if no source could be retrieved.