com.sonettic.mrss.elements
Class MRSSMediaChapter

java.lang.Object
  extended by com.sonettic.mrss.elements.MRSSMediaChapter

public class MRSSMediaChapter
extends java.lang.Object

Class represent media:chapter node of the Sonettic playlist MRSS feed.

Author:
Vasyl Skrypij

Constructor Summary
MRSSMediaChapter(java.lang.Integer timemark)
          Construct new chapter with timemark.
MRSSMediaChapter(java.lang.Integer timemark, java.lang.Integer duration)
          Construct new chapter with timemark.
 
Method Summary
 void addNode(MRSSNode node)
          Adding any optional node (like "keywords", "description" etc.) that don't represented by class to current item.
 org.dom4j.Element build(org.dom4j.Element element)
           
 java.lang.Integer getDuration()
          Duration getter.
 java.util.List<MRSSNode> getNodes()
          Get media contents of this item.
 java.lang.Integer getTimemark()
          Timemark getter.
 void setDuration(java.lang.Integer duration)
          Duration setter.
 void setTimemark(java.lang.Integer timemark)
          Timemark setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRSSMediaChapter

public MRSSMediaChapter(java.lang.Integer timemark)
Construct new chapter with timemark.

Parameters:
timemark -

MRSSMediaChapter

public MRSSMediaChapter(java.lang.Integer timemark,
                        java.lang.Integer duration)
Construct new chapter with timemark.

Parameters:
timemark -
duration -
Method Detail

getTimemark

public java.lang.Integer getTimemark()
Timemark getter.

Returns:
timemark of the chapter.

setTimemark

public void setTimemark(java.lang.Integer timemark)
Timemark setter.

Parameters:
timemark - new chapter timemark.

getNodes

public java.util.List<MRSSNode> getNodes()
Get media contents of this item.

Returns:
list of nodes.

addNode

public void addNode(MRSSNode node)
Adding any optional node (like "keywords", "description" etc.) that don't represented by class to current item.

Parameters:
node - new node

getDuration

public java.lang.Integer getDuration()
Duration getter.

Returns:
current duration of the chapter.

setDuration

public void setDuration(java.lang.Integer duration)
Duration setter.

Parameters:
duration - new chapter duration.

build

public org.dom4j.Element build(org.dom4j.Element element)