Lizzy v1.1.1

christophedelory.playlist.rmp
Class Tracklist

java.lang.Object
  extended by christophedelory.playlist.rmp.Tracklist

public class Tracklist
extends Object

The list of tracks in a Real Metadata Package.

Since:
0.3.0
Version:
$Revision: 91 $
Author:
Christophe Delory

Constructor Summary
Tracklist()
           
 
Method Summary
 void addTrack(Track track)
          Adds a track to this package.
 String getId()
          Returns the track list identifier.
 Package getParent()
          Returns the parent package, if any.
 List<Track> getTracks()
          Returns the list of tracks defined in this package.
 void setId(String id)
          Initializes the identifier of this track list.
(package private)  void setParent(Package parent)
          Initializes the parent package.
 void setTracks(List<Track> tracks)
          Initializes the list of tracks defined in this package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tracklist

public Tracklist()
Method Detail

setParent

void setParent(Package parent)
Initializes the parent package.

Parameters:
parent - the parent package. May be null.
See Also:
getParent()

getParent

public Package getParent()
Returns the parent package, if any.

Returns:
the parent package. May be null.

getId

public String getId()
Returns the track list identifier.

Returns:
an identifier. May be null.
See Also:
setId(java.lang.String)

setId

public void setId(String id)
Initializes the identifier of this track list.

Parameters:
id - an identifier. May be null.
See Also:
getId()

addTrack

public void addTrack(Track track)
Adds a track to this package.

Parameters:
track - a track. Shall not be null
Throws:
NullPointerException - if track is null.
See Also:
getTracks(), setTracks(java.util.List)

getTracks

public List<Track> getTracks()
Returns the list of tracks defined in this package.

Returns:
a list of tracks. May be empty but not null.
See Also:
setTracks(java.util.List), addTrack(christophedelory.playlist.rmp.Track)

setTracks

public void setTracks(List<Track> tracks)
Initializes the list of tracks defined in this package.

Parameters:
tracks - a list of tracks. May be empty but not null.
Throws:
NullPointerException - if tracks is null.
See Also:
getTracks(), addTrack(christophedelory.playlist.rmp.Track)

© 2008-2009 Christophe Delory

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