public class Channel extends Object implements Serializable
The <channel> element.
From the RSS 2.0 specification...
A channel may contain any number of <item>s. An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed; see examples), and the link and title may be omitted. All elements of an item are optional, however at least one of title or description must be present.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Category> |
getCategories() |
Category |
getCategory(String catValue) |
Cloud |
getCloud() |
Copyright |
getCopyright() |
Description |
getDescription() |
Docs |
getDocs() |
Extension |
getExtension(String extName) |
List<Extension> |
getExtensions() |
Generator |
getGenerator() |
Image |
getImage() |
Item |
getItem(String titleOrDescription) |
List<Item> |
getItems() |
Language |
getLanguage() |
LastBuildDate |
getLastBuildDate() |
Link |
getLink() |
ManagingEditor |
getManagingEditor() |
PubDate |
getPubDate() |
Rating |
getRating() |
SkipDays |
getSkipDays() |
SkipHours |
getSkipHours() |
TextInput |
getTextInput() |
Title |
getTitle() |
TTL |
getTtl() |
WebMaster |
getWebMaster() |
int |
hashCode() |
String |
toString()
Shows the contents of the <channel> element.
|
public Description getDescription()
public Language getLanguage()
public Copyright getCopyright()
public ManagingEditor getManagingEditor()
public WebMaster getWebMaster()
public PubDate getPubDate()
public LastBuildDate getLastBuildDate()
public List<Category> getCategories()
public Generator getGenerator()
public TextInput getTextInput()
public SkipHours getSkipHours()
public SkipDays getSkipDays()
public List<Extension> getExtensions()
public Category getCategory(String catValue)
catValue - the value of the category.public Item getItem(String titleOrDescription)
titleOrDescription - the title or description data.public Extension getExtension(String extName)
extName - the element name of the extension. eg. "atom:link" or
"someExtension"Copyright © 2014. All rights reserved.