net.chaosserver.jtunes.playlist
Class PlayList

java.lang.Object
  |
  +--net.chaosserver.jtunes.playlist.PlayList

public class PlayList
extends Object

Holds a PlayList.


Field Summary
protected  String originalFileName
          Holds the original filename of the playlist.
protected  List playListEntries
          Holds the entries in the playlist.
 
Constructor Summary
PlayList()
          Constructs a new empty playlist.
 
Method Summary
 void addPlayListEntry(PlayListEntry playListEntry)
          Adds an entry into the playlist.
 String getOriginalFileName()
          Gets the name of the original playlist file.
 List getPlayListEntries()
          Gets the list of PlayListEntries.
 void setOriginalFileName(String originalFileName)
          Sets the name of the original playlist file.
 int size()
          Returns the number of entries in the list.
 String toString()
          Converts the object to a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

originalFileName

protected String originalFileName
Holds the original filename of the playlist.


playListEntries

protected List playListEntries
Holds the entries in the playlist.

Constructor Detail

PlayList

public PlayList()
Constructs a new empty playlist.

Method Detail

setOriginalFileName

public void setOriginalFileName(String originalFileName)
Sets the name of the original playlist file.

Parameters:
originalFileName - the original playlist file

getOriginalFileName

public String getOriginalFileName()
Gets the name of the original playlist file.

Returns:
the original playlist file

addPlayListEntry

public void addPlayListEntry(PlayListEntry playListEntry)
Adds an entry into the playlist.

Parameters:
playListEntry - a new entry to add to the list

size

public int size()
Returns the number of entries in the list.

Returns:
the number of entries in the list

getPlayListEntries

public List getPlayListEntries()
Gets the list of PlayListEntries.

Returns:
a list of PlayListEntries

toString

public String toString()
Converts the object to a string representation.

Overrides:
toString in class Object
Returns:
a String representation of the object


Copyright ?? 20030801