public class Item extends Object implements Serializable
The <item> 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) |
Author |
getAuthor() |
List<Category> |
getCategories() |
Category |
getCategory(String catValue) |
Comments |
getComments() |
Description |
getDescription() |
Enclosure |
getEnclosure() |
Extension |
getExtension(String extName) |
List<Extension> |
getExtensions() |
GUID |
getGuid() |
Link |
getLink() |
PubDate |
getPubDate() |
Source |
getSource() |
Title |
getTitle() |
int |
hashCode() |
String |
toString()
Shows the contents of the <item> element.
|
public Description getDescription()
public List<Category> getCategories()
public Comments getComments()
public Enclosure getEnclosure()
public PubDate getPubDate()
public List<Extension> getExtensions()
public Category getCategory(String catValue)
catValue - the value for the category.public Extension getExtension(String extName)
extName - the element name of the extension. eg. "atom:link" or
"someExtension"Copyright © 2014. All rights reserved.