Lizzy v1.1.1

christophedelory.playlist.b4s
Class Playlist

java.lang.Object
  extended by christophedelory.playlist.b4s.Playlist

public class Playlist
extends Object

The playlist composing a Winamp 3+ B4S file.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Playlist()
           
 
Method Summary
 void addEntry(Entry entry)
          Adds an entry to this playlist.
 List<Entry> getEntries()
          Returns the list of entries defined in this playlist.
 String getLabel()
          Returns a label for the playlist.
 int getNumberOfEntries()
          Returns the number of entries in this playlist.
 void setLabel(String label)
          Initializes a label for the playlist.
 void setNumberOfEntries(int numEntries)
          Initializes the number of entries in this playlist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Playlist

public Playlist()
Method Detail

getNumberOfEntries

public int getNumberOfEntries()
Returns the number of entries in this playlist.

Returns:
the number of entries. Positive or null.
See Also:
setNumberOfEntries(int)

setNumberOfEntries

public void setNumberOfEntries(int numEntries)
Initializes the number of entries in this playlist.

Parameters:
numEntries - the number of entries. Shall not be strictly negative.
Throws:
IllegalArgumentException - if numEntries is strictly negative.
See Also:
getNumberOfEntries()

getLabel

public String getLabel()
Returns a label for the playlist.

Returns:
a label. May be null.
See Also:
setLabel(java.lang.String)

setLabel

public void setLabel(String label)
Initializes a label for the playlist.

Parameters:
label - a label. May be null.
See Also:
getLabel()

addEntry

public void addEntry(Entry entry)
Adds an entry to this playlist.

Parameters:
entry - an entry. Shall not be null
Throws:
NullPointerException - if entry is null.
See Also:
getEntries()

getEntries

public List<Entry> getEntries()
Returns the list of entries defined in this playlist.

Returns:
a list of entries. May be empty but not null.
See Also:
addEntry(christophedelory.playlist.b4s.Entry)

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.