|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester.rss.Channel
Implementation object representing a channel in the Rich Site Summary DTD, version 0.91. This class may be subclassed to further specialize its behavior.
Field Summary | |
protected java.lang.String |
copyright
The channel copyright (1-100 characters). |
protected java.lang.String |
description
The channel description (1-500 characters). |
protected java.lang.String |
docs
The channel description file URL (1-500 characters). |
protected Image |
image
The image describing this channel. |
protected java.util.ArrayList |
items
The set of items associated with this Channel. |
protected java.lang.String |
language
The channel language (2-5 characters). |
protected java.lang.String |
lastBuildDate
The channel last build date (1-100 characters). |
protected java.lang.String |
link
The channel link (1-500 characters). |
protected java.lang.String |
managingEditor
The managing editor (1-100 characters). |
protected java.lang.String |
pubDate
The channel publication date (1-100 characters). |
protected java.lang.String |
rating
The channel rating (20-500 characters). |
protected java.util.ArrayList |
skipDays
The set of skip days for this channel. |
protected java.util.ArrayList |
skipHours
The set of skip hours for this channel. |
protected TextInput |
textInput
The text input description for this channel. |
protected java.lang.String |
title
The channel title (1-100 characters). |
protected double |
version
The RSS specification version number used to create this Channel. |
protected java.lang.String |
webMaster
The webmaster email address (1-100 characters). |
Constructor Summary | |
Channel()
|
Method Summary | |
void |
addItem(Item item)
Add an additional item. |
void |
addSkipDay(java.lang.String skipDay)
Add an additional skip day name. |
void |
addSkipHour(java.lang.String skipHour)
Add an additional skip hour name. |
Item[] |
findItems()
Return the items for this channel. |
java.lang.String[] |
findSkipDays()
Return the skip days for this channel. |
java.lang.String[] |
findSkipHours()
Return the skip hours for this channel. |
java.lang.String |
getCopyright()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDocs()
|
Image |
getImage()
|
Item[] |
getItems()
Return the items for this channel. |
java.lang.String |
getLanguage()
|
java.lang.String |
getLastBuildDate()
|
java.lang.String |
getLink()
|
java.lang.String |
getManagingEditor()
|
java.lang.String |
getPubDate()
|
java.lang.String |
getRating()
|
java.lang.String[] |
getSkipDays()
Return the skip days for this channel. |
java.lang.String[] |
getSkipHours()
Return the skip hours for this channel. |
TextInput |
getTextInput()
|
java.lang.String |
getTitle()
|
double |
getVersion()
|
java.lang.String |
getWebMaster()
|
void |
removeItem(Item item)
Remove an item for this channel. |
void |
removeSkipDay(java.lang.String skipDay)
Remove a skip day for this channel. |
void |
removeSkipHour(java.lang.String skipHour)
Remove a skip hour for this channel. |
void |
render(java.io.OutputStream stream)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified output stream, with no indication of character encoding. |
void |
render(java.io.OutputStream stream,
java.lang.String encoding)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified output stream, with the specified character encoding. |
void |
render(java.io.PrintWriter writer)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified writer, with no indication of character encoding. |
void |
render(java.io.PrintWriter writer,
java.lang.String encoding)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified writer, indicating the specified character encoding. |
void |
render(java.io.Writer writer)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified writer, with no indication of character encoding. |
void |
render(java.io.Writer writer,
java.lang.String encoding)
Render this channel as XML conforming to the RSS 0.91 specification, to the specified writer, indicating the specified character encoding. |
void |
setCopyright(java.lang.String copyright)
|
void |
setDescription(java.lang.String description)
|
void |
setDocs(java.lang.String docs)
|
void |
setImage(Image image)
|
void |
setLanguage(java.lang.String language)
|
void |
setLastBuildDate(java.lang.String lastBuildDate)
|
void |
setLink(java.lang.String link)
|
void |
setManagingEditor(java.lang.String managingEditor)
|
void |
setPubDate(java.lang.String pubDate)
|
void |
setRating(java.lang.String rating)
|
void |
setTextInput(TextInput textInput)
|
void |
setTitle(java.lang.String title)
|
void |
setVersion(double version)
|
void |
setWebMaster(java.lang.String webMaster)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList items
protected java.util.ArrayList skipDays
protected java.util.ArrayList skipHours
protected java.lang.String copyright
protected java.lang.String description
protected java.lang.String docs
protected Image image
protected java.lang.String language
protected java.lang.String lastBuildDate
protected java.lang.String link
protected java.lang.String managingEditor
protected java.lang.String pubDate
protected java.lang.String rating
protected TextInput textInput
protected java.lang.String title
protected double version
protected java.lang.String webMaster
Constructor Detail |
public Channel()
Method Detail |
public java.lang.String getCopyright()
public void setCopyright(java.lang.String copyright)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getDocs()
public void setDocs(java.lang.String docs)
public Image getImage()
public void setImage(Image image)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.lang.String getLastBuildDate()
public void setLastBuildDate(java.lang.String lastBuildDate)
public java.lang.String getLink()
public void setLink(java.lang.String link)
public java.lang.String getManagingEditor()
public void setManagingEditor(java.lang.String managingEditor)
public java.lang.String getPubDate()
public void setPubDate(java.lang.String pubDate)
public java.lang.String getRating()
public void setRating(java.lang.String rating)
public TextInput getTextInput()
public void setTextInput(TextInput textInput)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public double getVersion()
public void setVersion(double version)
public java.lang.String getWebMaster()
public void setWebMaster(java.lang.String webMaster)
public void addItem(Item item)
item
- The item to be addedpublic void addSkipDay(java.lang.String skipDay)
skipDay
- The skip day to be addedpublic void addSkipHour(java.lang.String skipHour)
skipHour
- The skip hour to be addedpublic Item[] findItems()
public Item[] getItems()
public java.lang.String[] findSkipDays()
public java.lang.String[] getSkipHours()
public java.lang.String[] findSkipHours()
public java.lang.String[] getSkipDays()
public void removeItem(Item item)
item
- The item to be removedpublic void removeSkipDay(java.lang.String skipDay)
skipDay
- The skip day to be removedpublic void removeSkipHour(java.lang.String skipHour)
skipHour
- The skip hour to be removedpublic void render(java.io.OutputStream stream)
stream
- The output stream to write topublic void render(java.io.OutputStream stream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
stream
- The output stream to write toencoding
- The character encoding to declare, or null
for no declaration
java.io.UnsupportedEncodingException
- if the named encoding
is not supportedpublic void render(java.io.Writer writer)
writer
- The writer to render output topublic void render(java.io.Writer writer, java.lang.String encoding)
writer
- The writer to render output toencoding
- The character encoding to declare, or null
for no declarationpublic void render(java.io.PrintWriter writer)
writer
- The writer to render output topublic void render(java.io.PrintWriter writer, java.lang.String encoding)
writer
- The writer to render output toencoding
- The character encoding to declare, or null
for no declaration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |