Lizzy v1.1.1

christophedelory.lizzy
Class PlaylistToString

java.lang.Object
  extended by christophedelory.playlist.BasePlaylistVisitor
      extended by christophedelory.lizzy.PlaylistToString
All Implemented Interfaces:
PlaylistVisitor

public class PlaylistToString
extends BasePlaylistVisitor

Builds a string representation of a given playlist.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
PlaylistToString()
          Builds a new playlist visitor.
 
Method Summary
 void beginVisitMedia(Media target)
          Starts the visit of the specified media.
 void beginVisitParallel(Parallel target)
          Starts the visit of the specified parallel timing container.
 void beginVisitSequence(Sequence target)
          Starts the visit of the specified sequence.
 void endVisitParallel(Parallel target)
          Finishes the visit of the specified parallel timing container.
 void endVisitSequence(Sequence target)
          Finishes the visit of the specified sequence.
 void setDebug(boolean debug)
          Enables or disables the debug mode.
 String toString()
           
 
Methods inherited from class christophedelory.playlist.BasePlaylistVisitor
beginVisitPlaylist, endVisitMedia, endVisitPlaylist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlaylistToString

public PlaylistToString()
Builds a new playlist visitor.

See Also:
BasePlaylistVisitor.BasePlaylistVisitor()
Method Detail

setDebug

public void setDebug(boolean debug)
Enables or disables the debug mode. Extra information is added in debug mode. Defaults to disabled.

Parameters:
debug - the debug mode.

toString

public String toString()
Overrides:
toString in class Object

beginVisitParallel

public void beginVisitParallel(Parallel target)
                        throws Exception
Description copied from interface: PlaylistVisitor
Starts the visit of the specified parallel timing container.

Specified by:
beginVisitParallel in interface PlaylistVisitor
Overrides:
beginVisitParallel in class BasePlaylistVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
PlaylistVisitor.endVisitParallel(christophedelory.playlist.Parallel)

endVisitParallel

public void endVisitParallel(Parallel target)
                      throws Exception
Description copied from interface: PlaylistVisitor
Finishes the visit of the specified parallel timing container.

Specified by:
endVisitParallel in interface PlaylistVisitor
Overrides:
endVisitParallel in class BasePlaylistVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
PlaylistVisitor.beginVisitParallel(christophedelory.playlist.Parallel)

beginVisitSequence

public void beginVisitSequence(Sequence target)
                        throws Exception
Description copied from interface: PlaylistVisitor
Starts the visit of the specified sequence.

Specified by:
beginVisitSequence in interface PlaylistVisitor
Overrides:
beginVisitSequence in class BasePlaylistVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
PlaylistVisitor.endVisitSequence(christophedelory.playlist.Sequence)

endVisitSequence

public void endVisitSequence(Sequence target)
                      throws Exception
Description copied from interface: PlaylistVisitor
Finishes the visit of the specified sequence.

Specified by:
endVisitSequence in interface PlaylistVisitor
Overrides:
endVisitSequence in class BasePlaylistVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
PlaylistVisitor.beginVisitSequence(christophedelory.playlist.Sequence)

beginVisitMedia

public void beginVisitMedia(Media target)
                     throws Exception
Description copied from interface: PlaylistVisitor
Starts the visit of the specified media.

Specified by:
beginVisitMedia in interface PlaylistVisitor
Overrides:
beginVisitMedia in class BasePlaylistVisitor
Parameters:
target - the element being visited. Shall not be null.
Throws:
NullPointerException - if target is null.
Exception - if any error occurs during the visit.
See Also:
PlaylistVisitor.endVisitMedia(christophedelory.playlist.Media)

© 2008-2009 Christophe Delory

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