|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonettic.mrss.elements.MRSSChannel
public class MRSSChannel
Class that represent channel node of the Sonettic playlist MRRS. Carries out a role of the container for all other data.
| Constructor Summary | |
|---|---|
MRSSChannel(java.util.List<MRSSItem> items,
java.lang.String id)
Public constructor |
|
MRSSChannel(java.lang.String id)
Public constructor |
|
| Method Summary | |
|---|---|
void |
addItem(MRSSItem item)
Append item to current channel. |
void |
addItems(java.util.Collection<MRSSItem> items)
Appends all of the items in the collection to this channel. |
void |
addNode(MRSSNode node)
Adding any optional node which is not represented by class to current channel. |
org.dom4j.Element |
build(org.dom4j.Element element)
Build channel in org.dom4j.Element with all child nodes. |
MRSSAds |
getAds()
Getter for ads node of this channel. |
java.lang.String |
getId()
Id getter. |
java.util.List<MRSSItem> |
getItems()
Getter for items of this channel |
java.util.List<MRSSNode> |
getNodes()
Get MRSSNodes of this channel. |
MRSSPoster |
getPoster()
Getter for poster node of this channel. |
void |
setAds(MRSSAds ads)
Setter for ads node of this channel. |
void |
setId(java.lang.String id)
Id setter. |
void |
setPoster(MRSSPoster poster)
Setter for poster node of this channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MRSSChannel(java.lang.String id)
id - unique id of current channel
public MRSSChannel(java.util.List<MRSSItem> items,
java.lang.String id)
items - list of MRSSItem objects for current channel.id - id of current channel.| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id)
id - of current channel.public MRSSAds getAds()
public void setAds(MRSSAds ads)
ads - MRSSAds object.public MRSSPoster getPoster()
public void setPoster(MRSSPoster poster)
poster - MRSSPoster object.public java.util.List<MRSSItem> getItems()
public void addItems(java.util.Collection<MRSSItem> items)
items - collection of items.public void addItem(MRSSItem item)
item - itempublic java.util.List<MRSSNode> getNodes()
public void addNode(MRSSNode node)
node - public org.dom4j.Element build(org.dom4j.Element element)
element - element to which should be added the channel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||