|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.stringer.rss.RSSElement
|
+--org.stringer.rss.Channel
The channel element contains metadata describing the channel itself, including a title, brief description, and URL link to the described resource (the channel provider's home page, for instance). The {resource} URL of the channel element's rdf:about attribute must be unique with respect to any other rdf:about attributes in the RSS document and is a URI which identifies the channel. Most commonly, this is either the URL of the homepage being described or a URL where the RSS file can be found.
| Field Summary | |
protected java.lang.String |
about
|
protected java.lang.String |
category
Specify one or more categories that the channel belongs to. |
protected java.util.LinkedList |
channels
|
protected java.lang.String |
copyright
Copyright notice for content in the channel (optional element). |
(package private) boolean |
dirty
|
protected java.lang.String |
docs
A URL that points to the documentation for the format used in the RSS file (optional element). |
protected java.util.LinkedList |
items
An RDF table of contents, associating the document's items with this particular RSS channel. |
protected java.lang.String |
language
The language the channel is written in. |
protected java.lang.String |
lastBuildDate
The last time the content of the channel changed. |
protected java.lang.String |
managingEditorEmail
address for person responsible for editorial content of this channel (optional element). |
(package private) Channel |
parent
A channel may contain other channels |
protected java.lang.String |
pubDate
The publication date for the content in the channel. |
protected java.lang.String |
rating
The PICS rating for this channel (optional element). |
protected RSSImage |
rssImage
An image to be associated with an HTML rendering of the channel. |
protected java.lang.String |
skipDays
An element that contains up to seven day sub-elements whose
value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday
(optional element). |
protected java.lang.String |
skipHours
An element that contains up to 24 hour sub-elements whose
value is a number between 1 and 24, representing a time in GMT, when
aggregators, if they support the feature, may not read the channel on
days listed in the skipHours element (optional element). |
protected java.lang.String |
updateBase
|
protected java.lang.String |
updateFrequency
|
protected java.lang.String |
updatePeriod
|
protected java.lang.String |
webMaster
address for person responsible for technical issues relating to channel (optional element). |
| Fields inherited from class org.stringer.rss.RSSElement |
description, lastUpdateTime, link, linkURL, logger, title, userObject |
| Constructor Summary | |
Channel()
|
|
Channel(nu.xom.Element e,
java.lang.String namespaceUri)
Create a Channel from the parsed element in a given namespace. |
|
Channel(java.lang.String title)
|
|
| Method Summary | |
void |
addChannel(Channel ch)
|
void |
addItem(Item item)
Add a new item to this channel |
java.lang.String |
getAbout()
|
java.lang.String |
getCategory()
accessor for the category element. |
java.util.List |
getChannels()
|
java.lang.String |
getCopyright()
|
boolean |
getDirty()
|
RSSImage |
getImage()
|
java.util.List |
getItems()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getLastBuildDate()
accessor for the lastBuildDate element. |
Channel |
getParent()
|
java.lang.String |
getPubDate()
|
java.lang.String |
getUpdateBase()
|
java.lang.String |
getUpdateFrequency()
|
java.lang.String |
getWebMaster()
|
void |
removeItem(Item item)
Remove an existing item from this channel |
void |
setDirty(boolean b)
|
void |
setParent(Channel ch)
|
void |
touch()
|
java.lang.String |
toXML()
|
| Methods inherited from class org.stringer.rss.RSSElement |
buildId, decodeStringerElement, dump, getDescription, getId, getLastUpdateTime, getLink, getLinkAsURL, getTitle, getUserObject, makeId, setDescription, setLastUpdateTime, setLink, setTitle, setUserObject, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String docs
protected java.lang.String copyright
protected java.lang.String managingEditorEmail
protected java.lang.String webMaster
protected java.lang.String skipDays
day sub-elements whose
value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday
(optional element).
A list of
Aggregators may not read the channel during hours listed in the skipDays
element. (Most aggregators seem to ignore this element.)
protected java.lang.String skipHours
hour sub-elements whose
value is a number between 1 and 24, representing a time in GMT, when
aggregators, if they support the feature, may not read the channel on
days listed in the skipHours element (optional element).
(Most aggregators seem to ignore this element.)
protected java.lang.String rating
protected java.lang.String pubDate
protected java.lang.String lastBuildDate
protected java.lang.String category
protected java.lang.String updatePeriod
protected java.lang.String updateFrequency
protected java.lang.String updateBase
protected java.lang.String about
protected RSSImage rssImage
protected java.util.LinkedList items
Channel parent
protected java.util.LinkedList channels
protected java.lang.String language
transient boolean dirty
| Constructor Detail |
public Channel()
public Channel(java.lang.String title)
public Channel(nu.xom.Element e,
java.lang.String namespaceUri)
| Method Detail |
public java.lang.String getPubDate()
public void setParent(Channel ch)
public Channel getParent()
public void touch()
public java.util.List getChannels()
public void addChannel(Channel ch)
public java.lang.String getCopyright()
public java.lang.String getWebMaster()
public java.lang.String getAbout()
public RSSImage getImage()
public java.util.List getItems()
public void addItem(Item item)
public void removeItem(Item item)
public java.lang.String getCategory()
category element.
public java.lang.String getLanguage()
public java.lang.String getLastBuildDate()
lastBuildDate element.
public java.lang.String getUpdateFrequency()
public java.lang.String getUpdateBase()
public boolean getDirty()
public void setDirty(boolean b)
public java.lang.String toXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||