Lizzy v1.1.1

christophedelory.playlist.wpl
Class Seq

java.lang.Object
  extended by christophedelory.playlist.wpl.Seq

public class Seq
extends Object

Contains elements that define a static playlist or elements that define a smart playlist. When a seq element only contains media elements that reference specific media items, the playlist is considered to be static. When a seq element contains a smartPlaylist element, it is considered to be a dynamic "smart" playlist.
Windows Media Player 9 Series or later.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Seq()
           
 
Method Summary
 void addMedia(Media media)
          Adds a media element to this sequence.
 List<Media> getMedias()
          Returns the list of media elements.
 SmartPlaylist getSmartPlaylist()
          Returns the smart playlist, if any.
 void setSmartPlaylist(SmartPlaylist smartPlaylist)
          Initializes the smart playlist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Seq

public Seq()
Method Detail

addMedia

public void addMedia(Media media)
Adds a media element to this sequence.

Parameters:
media - a media element. Shall not be null.
Throws:
NullPointerException - if media is null.
IllegalStateException - if a smart playlist has already been specified.
See Also:
getMedias()

getMedias

public List<Media> getMedias()
Returns the list of media elements.

Returns:
a list of media elements. May be empty but not null.
See Also:
addMedia(christophedelory.playlist.wpl.Media)

getSmartPlaylist

public SmartPlaylist getSmartPlaylist()
Returns the smart playlist, if any.

Returns:
a smart playlist element. May be null.
See Also:
setSmartPlaylist(christophedelory.playlist.wpl.SmartPlaylist)

setSmartPlaylist

public void setSmartPlaylist(SmartPlaylist smartPlaylist)
Initializes the smart playlist.

Parameters:
smartPlaylist - a smart playlist element. May be null.
Throws:
IllegalStateException - if at least one media has already been added in this sequence.
See Also:
getSmartPlaylist()

© 2008-2009 Christophe Delory

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