public class Channel extends WireFeed
It handles all RSS versions (0.9, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) without losing information.
Modifier and Type | Field and Description |
---|---|
private java.util.List<Category> |
categories |
private Cloud |
cloud |
private java.lang.String |
copyright |
private static java.util.Set<java.lang.String> |
DAYS |
private java.lang.String |
description |
private java.lang.String |
docs |
static java.lang.String |
FRIDAY |
private java.lang.String |
generator |
private Image |
image |
private java.util.List<Item> |
items |
private java.lang.String |
language |
private java.util.Date |
lastBuildDate |
private java.lang.String |
link |
private java.lang.String |
managingEditor |
private java.util.List<Module> |
modules |
static java.lang.String |
MONDAY |
private java.util.Date |
pubDate |
private java.lang.String |
rating |
static java.lang.String |
SATURDAY |
private static long |
serialVersionUID |
private java.util.List<java.lang.String> |
skipDays |
private java.util.List<java.lang.Integer> |
skipHours |
static java.lang.String |
SUNDAY |
private TextInput |
textInput |
static java.lang.String |
THURSDAY |
private java.lang.String |
title |
private int |
ttl |
static java.lang.String |
TUESDAY |
private java.lang.String |
uri |
private java.lang.String |
webMaster |
static java.lang.String |
WEDNESDAY |
Constructor and Description |
---|
Channel()
Default constructor, for bean cloning purposes only.
|
Channel(java.lang.String type)
Channel Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Category> |
getCategories()
Returns the channel categories.
|
Cloud |
getCloud()
Returns the channel cloud.
|
java.lang.String |
getCopyright()
Returns the channel copyright.
|
java.lang.String |
getDescription()
Returns the channel description.
|
java.lang.String |
getDocs()
Returns the channel docs.
|
java.lang.String |
getGenerator()
Returns the channel generator.
|
Image |
getImage()
Returns the channel image.
|
java.util.List<Item> |
getItems()
Returns the channel items.
|
java.lang.String |
getLanguage()
Returns the channel language.
|
java.util.Date |
getLastBuildDate()
Returns the channel last build date.
|
java.lang.String |
getLink()
Returns the channel link.
|
java.lang.String |
getManagingEditor()
Returns the channel managing editor.
|
Module |
getModule(java.lang.String uri)
Returns the module identified by a given URI.
|
java.util.List<Module> |
getModules()
Returns the channel modules.
|
java.util.Date |
getPubDate()
Returns the channel publishing date.
|
java.lang.String |
getRating()
Returns the channel rating.
|
java.util.List<java.lang.String> |
getSkipDays()
Returns the channel skip days.
|
java.util.List<java.lang.Integer> |
getSkipHours()
Returns the channel skip hours.
|
TextInput |
getTextInput()
Returns the channel text input.
|
java.lang.String |
getTitle()
Returns the channel title.
|
int |
getTtl()
Returns the channel time to live.
|
java.lang.String |
getUri()
Returns the channel uri.
|
java.lang.String |
getWebMaster()
Returns the channel web master.
|
void |
setCategories(java.util.List<Category> categories)
Sets the channel categories.
|
void |
setCloud(Cloud cloud)
Sets the channel cloud.
|
void |
setCopyright(java.lang.String copyright)
Sets the channel copyright.
|
void |
setDescription(java.lang.String description)
Sets the channel description.
|
void |
setDocs(java.lang.String docs)
Sets the channel docs.
|
void |
setGenerator(java.lang.String generator)
Sets the channel generator.
|
void |
setImage(Image image)
Sets the channel image.
|
void |
setItems(java.util.List<Item> items)
Sets the channel items.
|
void |
setLanguage(java.lang.String language)
Sets the channel language.
|
void |
setLastBuildDate(java.util.Date lastBuildDate)
Sets the channel last build date.
|
void |
setLink(java.lang.String link)
Sets the channel link.
|
void |
setManagingEditor(java.lang.String managingEditor)
Sets the channel managing editor.
|
void |
setModules(java.util.List<Module> modules)
Sets the channel modules.
|
void |
setPubDate(java.util.Date pubDate)
Sets the channel publishing date.
|
void |
setRating(java.lang.String rating)
Sets the channel rating.
|
void |
setSkipDays(java.util.List<java.lang.String> skipDays)
Sets the channel skip days.
|
void |
setSkipHours(java.util.List<java.lang.Integer> skipHours)
Sets the channel skip hours.
|
void |
setTextInput(TextInput textInput)
Sets the channel text input.
|
void |
setTitle(java.lang.String title)
Sets the channel title.
|
void |
setTtl(int ttl)
Sets the channel time to live.
|
void |
setUri(java.lang.String uri)
Sets the channel uri.
|
void |
setWebMaster(java.lang.String webMaster)
Sets the channel web master.
|
clone, equals, getEncoding, getFeedType, getForeignMarkup, getStyleSheet, hashCode, setEncoding, setFeedType, setForeignMarkup, setStyleSheet, toString
private static final long serialVersionUID
public static final java.lang.String SUNDAY
public static final java.lang.String MONDAY
public static final java.lang.String TUESDAY
public static final java.lang.String WEDNESDAY
public static final java.lang.String THURSDAY
public static final java.lang.String FRIDAY
public static final java.lang.String SATURDAY
private static final java.util.Set<java.lang.String> DAYS
private java.lang.String title
private java.lang.String description
private java.lang.String link
private java.lang.String uri
private Image image
private java.util.List<Item> items
private TextInput textInput
private java.lang.String language
private java.lang.String rating
private java.lang.String copyright
private java.util.Date pubDate
private java.util.Date lastBuildDate
private java.lang.String docs
private java.lang.String managingEditor
private java.lang.String webMaster
private java.util.List<java.lang.Integer> skipHours
private java.util.List<java.lang.String> skipDays
private Cloud cloud
private java.util.List<Category> categories
private java.lang.String generator
private int ttl
private java.util.List<Module> modules
public Channel()
public Channel(java.lang.String type)
type
- the type of the RSS feed.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the channel title to set, null if none.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the channel description to set, null if none.public java.lang.String getLink()
public void setLink(java.lang.String link)
link
- the channel link to set, null if none.public java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- the channel uri, null if none.public Image getImage()
public void setImage(Image image)
image
- the channel image to set, null if none.public java.util.List<Item> getItems()
public void setItems(java.util.List<Item> items)
items
- the list of Item elements with the channel items to set, an empty list or
null if none.public TextInput getTextInput()
public void setTextInput(TextInput textInput)
textInput
- the channel text input to set, null if none.public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- the channel language to set, null if none.public java.lang.String getRating()
public void setRating(java.lang.String rating)
rating
- the channel rating to set, null if none.public java.lang.String getCopyright()
public void setCopyright(java.lang.String copyright)
copyright
- the channel copyright to set, null if none.public java.util.Date getPubDate()
public void setPubDate(java.util.Date pubDate)
pubDate
- the channel publishing date to set, null if none.public java.util.Date getLastBuildDate()
public void setLastBuildDate(java.util.Date lastBuildDate)
lastBuildDate
- the channel last build date to set, null if none.public java.lang.String getDocs()
public void setDocs(java.lang.String docs)
docs
- the channel docs to set, null if none.public java.lang.String getManagingEditor()
public void setManagingEditor(java.lang.String managingEditor)
managingEditor
- the channel managing editor to set, null if none.public java.lang.String getWebMaster()
public void setWebMaster(java.lang.String webMaster)
webMaster
- the channel web master to set, null if none.public java.util.List<java.lang.Integer> getSkipHours()
public void setSkipHours(java.util.List<java.lang.Integer> skipHours)
skipHours
- the list of Integer elements with the channel skip hours to set, an empty
list or null if none.public java.util.List<java.lang.String> getSkipDays()
public void setSkipDays(java.util.List<java.lang.String> skipDays)
skipDays
- the list of Day elements with the channel skip days to set, an empty list or
null if none.public Cloud getCloud()
public void setCloud(Cloud cloud)
cloud
- the channel cloud to set, null if none.public java.util.List<Category> getCategories()
public void setCategories(java.util.List<Category> categories)
categories
- the list of Category elements with the channel categories to set, an empty
list or null if none.public java.lang.String getGenerator()
public void setGenerator(java.lang.String generator)
generator
- the channel generator to set, null if none.public int getTtl()
public void setTtl(int ttl)
ttl
- the channel time to live to set, null if none.public java.util.List<Module> getModules()
getModules
in interface Extendable
getModules
in class WireFeed
public void setModules(java.util.List<Module> modules)
setModules
in interface Extendable
setModules
in class WireFeed
modules
- the list of ModuleImpl elements with the channel modules to set, an empty list
or null if none.public Module getModule(java.lang.String uri)
getModule
in interface Extendable
getModule
in class WireFeed
uri
- the URI of the ModuleImpl.