|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sauronsoftware.feed4j.bean.RawElement
it.sauronsoftware.feed4j.bean.FeedItem
public class FeedItem
This class is used to represent the items in a feed.
Constructor Summary | |
---|---|
FeedItem()
|
Method Summary | |
---|---|
void |
addEnclosure(FeedEnclosure enclosure)
This method adds an enclosure to the item. |
java.net.URL |
getComments()
This method returns the URL for the comments to the item. |
java.lang.String |
getDescriptionAsHTML()
This method returns the item description as HTML code. |
java.lang.String |
getDescriptionAsText()
This method returns the item description as plain text. |
FeedEnclosure |
getEnclosure(int index)
This method returns one of the item enclosures. |
int |
getEnclosureCount()
This method returns the number of the feed enclosures. |
java.lang.String |
getGUID()
This method returns the item GUID, used to identify it universally. |
java.net.URL |
getLink()
This method returns the item link. |
java.util.Date |
getModDate()
This method returns the item latest modification date. |
java.util.Date |
getPubDate()
This method returns the item publication date. |
java.lang.String |
getTitle()
This method returns the item title. |
void |
setComments(java.net.URL comments)
This method sets the URL for the comments to the item. |
void |
setDescriptionAsHTML(java.lang.String descriptionAsHTML)
This method sets the item description as HTML code. |
void |
setDescriptionAsText(java.lang.String descriptionAsText)
This method sets the item description as plain text. |
void |
setGUID(java.lang.String guid)
This method sets the item GUID. |
void |
setLink(java.net.URL link)
This method sets the item link. |
void |
setModDate(java.util.Date modDate)
This method sets the item latest modification date. |
void |
setPubDate(java.util.Date pubDate)
This method sets the item publication date. |
void |
setTitle(java.lang.String title)
This method sets the item title. |
Methods inherited from class it.sauronsoftware.feed4j.bean.RawElement |
---|
addAttribute, addNode, getAttribute, getAttributeCount, getAttributeValue, getElement, getElements, getElementValue, getName, getNamespaceURI, getNode, getNodeCount, getValue, removeNode, setName, setNamespaceURI, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedItem()
Method Detail |
---|
public java.net.URL getComments()
public void setComments(java.net.URL comments)
comments
- The URL for the comments to the item.public java.lang.String getGUID()
public void setGUID(java.lang.String guid)
guid
- The item GUID. universalmente.public java.net.URL getLink()
public void setLink(java.net.URL link)
link
- The item link.public java.util.Date getPubDate()
public void setPubDate(java.util.Date pubDate)
pubDate
- The item publication date.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The item title.public void addEnclosure(FeedEnclosure enclosure)
enclosure
- The item enclosure.public FeedEnclosure getEnclosure(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the wanted enclosure-
java.lang.IndexOutOfBoundsException
- If the index supplied is not valid. It must be greater or
equal to 0 and less than the value returned by
getEnclosureCount().public int getEnclosureCount()
public java.util.Date getModDate()
public void setModDate(java.util.Date modDate)
modDate
- The item latest modification date.public java.lang.String getDescriptionAsHTML()
public void setDescriptionAsHTML(java.lang.String descriptionAsHTML)
descriptionAsHTML
- The item description as HTML code.public java.lang.String getDescriptionAsText()
public void setDescriptionAsText(java.lang.String descriptionAsText)
descriptionAsText
- The item description as plain text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |