com.sun.syndication.feed.rss
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.
Field Summary | |
---|---|
static Set | DAYS |
static String | FRIDAY |
static String | MONDAY |
static String | SATURDAY |
static String | SUNDAY |
static String | THURSDAY |
static String | TUESDAY |
static String | WEDNESDAY |
List | _categories |
Cloud | _cloud |
String | _copyright |
String | _description |
String | _docs |
String | _generator |
Image | _image |
List | _items |
String | _language |
Date | _lastBuildDate |
String | _link |
String | _managingEditor |
List | _modules |
Date | _pubDate |
String | _rating |
List | _skipDays |
List | _skipHours |
TextInput | _textInput |
String | _title |
int | _ttl |
String | _uri |
String | _webMaster |
Constructor Summary | |
---|---|
Channel()
Default constructor, for bean cloning purposes only.
| |
Channel(String type)
Channel Constructor. |
Method Summary | |
---|---|
List | getCategories()
Returns the channel categories.
|
Cloud | getCloud()
Returns the channel cloud.
|
String | getCopyright()
Returns the channel copyright.
|
String | getDescription()
Returns the channel description.
|
String | getDocs()
Returns the channel docs.
|
String | getGenerator()
Returns the channel generator.
|
Image | getImage()
Returns the channel image.
|
List | getItems()
Returns the channel items.
|
String | getLanguage()
Returns the channel language.
|
Date | getLastBuildDate()
Returns the channel last build date.
|
String | getLink()
Returns the channel link.
|
String | getManagingEditor()
Returns the channel managing editor.
|
Module | getModule(String uri)
Returns the module identified by a given URI.
|
List | getModules()
Returns the channel modules.
|
Date | getPubDate()
Returns the channel publishing date.
|
String | getRating()
Returns the channel rating.
|
List | getSkipDays()
Returns the channel skip days.
|
List | getSkipHours()
Returns the channel skip hours.
|
TextInput | getTextInput()
Returns the channel text input.
|
String | getTitle()
Returns the channel title.
|
int | getTtl()
Returns the channel time to live.
|
String | getUri()
Returns the channel uri.
|
String | getWebMaster()
Returns the channel web master.
|
void | setCategories(List categories)
Sets the channel categories.
|
void | setCloud(Cloud cloud)
Sets the channel cloud.
|
void | setCopyright(String copyright)
Sets the channel copyright.
|
void | setDescription(String description)
Sets the channel description.
|
void | setDocs(String docs)
Sets the channel docs.
|
void | setGenerator(String generator)
Sets the channel generator.
|
void | setImage(Image image)
Sets the channel image.
|
void | setItems(List items)
Sets the channel items.
|
void | setLanguage(String language)
Sets the channel language.
|
void | setLastBuildDate(Date lastBuildDate)
Sets the channel last build date.
|
void | setLink(String link)
Sets the channel link.
|
void | setManagingEditor(String managingEditor)
Sets the channel managing editor.
|
void | setModules(List modules)
Sets the channel modules.
|
void | setPubDate(Date pubDate)
Sets the channel publishing date.
|
void | setRating(String rating)
Sets the channel rating.
|
void | setSkipDays(List skipDays)
Sets the channel skip days.
|
void | setSkipHours(List skipHours)
Sets the channel skip hours.
|
void | setTextInput(TextInput textInput)
Sets the channel text input.
|
void | setTitle(String title)
Sets the channel title.
|
void | setTtl(int ttl)
Sets the channel time to live.
|
void | setUri(String uri)
Sets the channel uri.
|
void | setWebMaster(String webMaster)
Sets the channel web master.
|
Parameters: type the type of the RSS feed.
Returns: a list of Category elements with the channel categories, an empty list if none.
Returns: the channel cloud, null if none.
Returns: the channel copyright, null if none.
Returns: the channel description, null if none.
Returns: the channel docs, null if none.
Returns: the channel generator, null if none.
Returns: the channel image, null if none.
Returns: a list of Item elements with the channel items, an empty list if none.
Returns: the channel language, null if none.
Returns: the channel last build date, null if none.
Returns: the channel link, null if none.
Returns: the channel managing editor, null if none.
Parameters: uri the URI of the ModuleImpl.
Returns: The module with the given URI, null if none.
Returns: a list of ModuleImpl elements with the channel modules, an empty list if none.
Returns: the channel publishing date, null if none.
Returns: the channel rating, null if none.
Returns: a list of Day elements with the channel skip days, an empty list if none.
Returns: a list of Integer elements with the channel skip hours, an empty list if none.
Returns: the channel text input, null if none.
Returns: the channel title, null if none.
Returns: the channel time to live, null if none.
Returns: the channel uri, null if none.
Returns: the channel web master, null if none.
Parameters: categories the list of Category elements with the channel categories to set, an empty list or null if none.
Parameters: cloud the channel cloud to set, null if none.
Parameters: copyright the channel copyright to set, null if none.
Parameters: description the channel description to set, null if none.
Parameters: docs the channel docs to set, null if none.
Parameters: generator the channel generator to set, null if none.
Parameters: image the channel image to set, null if none.
Parameters: items the list of Item elements with the channel items to set, an empty list or null if none.
Parameters: language the channel language to set, null if none.
Parameters: lastBuildDate the channel last build date to set, null if none.
Parameters: link the channel link to set, null if none.
Parameters: managingEditor the channel managing editor to set, null if none.
Parameters: modules the list of ModuleImpl elements with the channel modules to set, an empty list or null if none.
Parameters: pubDate the channel publishing date to set, null if none.
Parameters: rating the channel rating to set, null if none.
Parameters: skipDays the list of Day elements with the channel skip days to set, an empty list or null if none.
Parameters: skipHours the list of Integer elements with the channel skip hours to set, an empty list or null if none.
Parameters: textInput the channel text input to set, null if none.
Parameters: title the channel title to set, null if none.
Parameters: ttl the channel time to live to set, null if none.
Parameters: uri the channel uri, null if none.
Parameters: webMaster the channel web master to set, null if none.