|
Lizzy v1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchristophedelory.playlist.AbstractPlaylistComponent
christophedelory.playlist.Media
public class Media
The definition of a media content.
| Constructor Summary | |
|---|---|
Media()
|
|
| Method Summary | |
|---|---|
void |
acceptDown(PlaylistVisitor visitor)
Accepts the specified playlist visitor. |
void |
acceptUp(PlaylistVisitor visitor)
Accepts the specified playlist visitor. |
Long |
getDuration()
Returns the play duration in milliseconds. |
Content |
getSource()
Returns the media source. |
void |
setDuration(long millis)
Initializes the play duration in milliseconds. |
void |
setDuration(Long millis)
Initializes the play duration in milliseconds. |
void |
setSource(Content source)
Initializes the media source. |
| Methods inherited from class christophedelory.playlist.AbstractPlaylistComponent |
|---|
getParent, getRepeatCount, setParent, setRepeatCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Media()
| Method Detail |
|---|
public Content getSource()
null if not yet initialized.setSource(christophedelory.content.Content)public void setSource(Content source)
source - a media source. Shall not be null.
NullPointerException - if source is null.getSource()public Long getDuration()
null.setDuration(java.lang.Long)public void setDuration(Long millis)
millis - a duration value. May be null.
IllegalArgumentException - if the specified duration value is negative or null.getDuration(),
setDuration(java.lang.Long)public void setDuration(long millis)
millis - a duration value.
IllegalArgumentException - if the specified duration is negative or null.getDuration(),
setDuration(java.lang.Long)
public void acceptDown(PlaylistVisitor visitor)
throws Exception
AbstractPlaylistComponent
acceptDown in class AbstractPlaylistComponentvisitor - a visitor. Shall not be null.
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.
public void acceptUp(PlaylistVisitor visitor)
throws Exception
AbstractPlaylistComponent
acceptUp in class AbstractPlaylistComponentvisitor - a visitor. Shall not be null.
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.
|
© 2008-2009 Christophe Delory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||