Package com.jalios.util
Class RssItem
- java.lang.Object
-
- com.jalios.util.RssItem
-
public class RssItem extends java.lang.ObjectThis class implements a RSS Channel's item parser/container.- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description RssItem()Creates a new RssItem.RssItem(com.sun.syndication.feed.synd.SyndEntry entry)Create a new RssItem and fill this object with the data containing the SyndEntryRssItem(org.jdom.Element element)Create a new RssItem and fill this object with the data containing the DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetAuthor()java.util.List<java.lang.String>getCategories()java.lang.StringgetCategory()Deprecated.usegetCategories()insteadjava.lang.StringgetComments()java.lang.StringgetDescription()Get the value of description.intgetEnclosureLength()This method is deprecated.java.util.List<Enclosure>getEnclosures()java.lang.StringgetEnclosureType()Deprecated.the type must be retrieved fromgetEnclosures()list insteadjava.lang.StringgetEnclosureURL()Deprecated.the URL must be retrieved fromgetEnclosures()list insteadjava.lang.StringgetGuid()java.lang.StringgetLink()Get the value of link.java.util.DategetParsedPubDate()Deprecated.usegetPublicationDate()insteadjava.lang.StringgetPubDate()Deprecated.usegetPublicationDate()instead and reformat the datejava.util.DategetPublicationDate()java.lang.StringgetSource()java.lang.StringgetTitle()Get the value of title.voidsetAuthor(java.lang.String author)voidsetCategories(java.util.List<java.lang.String> categories)voidsetCategory(java.lang.String category)Deprecated.usegetCategories()insteadvoidsetComments(java.lang.String comments)voidsetDescription(java.lang.String v)Set the value of description.voidsetEnclosureLength(int enclosureLength)Deprecated.setEnclosures(List)must be used insteadvoidsetEnclosures(java.util.List<Enclosure> enclosures)voidsetEnclosureType(java.lang.String enclosureType)Deprecated.setEnclosures(List)must be used insteadvoidsetEnclosureURL(java.lang.String enclosureURL)Deprecated.setEnclosures(List)must be used insteadvoidsetGuid(java.lang.String guid)voidsetLink(java.lang.String v)Set the value of link.voidsetPubDate(java.lang.String v)Deprecated.usesetPublicationDate(Date)insteadvoidsetPublicationDate(java.util.Date publicationDate)voidsetSource(java.lang.String source)voidsetTitle(java.lang.String v)Set the value of title.
-
-
-
Constructor Detail
-
RssItem
public RssItem()
Creates a new RssItem.
-
RssItem
public RssItem(com.sun.syndication.feed.synd.SyndEntry entry)
Create a new RssItem and fill this object with the data containing the SyndEntry- Parameters:
entry- theSyndEntryto parse
-
RssItem
public RssItem(org.jdom.Element element)
Create a new RssItem and fill this object with the data containing the DOM element- Parameters:
element- the DOM element to parse
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Get the value of title.- Returns:
- Value of title.
-
setTitle
public void setTitle(java.lang.String v)
Set the value of title.- Parameters:
v- Value to assign to title.
-
getLink
public java.lang.String getLink()
Get the value of link.- Returns:
- Value of link.
-
setLink
public void setLink(java.lang.String v)
Set the value of link.- Parameters:
v- Value to assign to link.
-
getDescription
public java.lang.String getDescription()
Get the value of description.- Returns:
- Value of description.
-
setDescription
public void setDescription(java.lang.String v)
Set the value of description.- Parameters:
v- Value to assign to description.
-
getAuthor
public java.lang.String getAuthor()
- Returns:
- Returns the author.
-
setAuthor
public void setAuthor(java.lang.String author)
- Parameters:
author- The author to set.
-
getCategory
@Deprecated public java.lang.String getCategory()
Deprecated.usegetCategories()insteadThis method is deprecated. GetCategories must be used instead. The first element of getCategories list will be returned.- Returns:
- Returns the category.
-
setCategory
@Deprecated public void setCategory(java.lang.String category)
Deprecated.usegetCategories()insteadThis method is deprecated. this method add a category to categories list.- Parameters:
category- The category to set.
-
getCategories
public java.util.List<java.lang.String> getCategories()
- Returns:
- the categories
-
setCategories
public void setCategories(java.util.List<java.lang.String> categories)
- Parameters:
categories- the categories to set
-
getComments
public java.lang.String getComments()
- Returns:
- Returns the comments.
-
setComments
public void setComments(java.lang.String comments)
- Parameters:
comments- The comments to set.
-
getEnclosures
public java.util.List<Enclosure> getEnclosures()
- Returns:
- the enclosures
-
setEnclosures
public void setEnclosures(java.util.List<Enclosure> enclosures)
- Parameters:
enclosures- the enclosures to set
-
getEnclosureLength
public int getEnclosureLength()
This method is deprecated. The first enclosure is used for this method.- Returns:
- Returns the enclosureLength.
-
setEnclosureLength
@Deprecated public void setEnclosureLength(int enclosureLength)
Deprecated.setEnclosures(List)must be used insteadThis method is deprecated. this method do nothing- Parameters:
enclosureLength- The enclosureLength to set.
-
getEnclosureType
@Deprecated public java.lang.String getEnclosureType()
Deprecated.the type must be retrieved fromgetEnclosures()list insteadThis method is deprecated. The first enclosure is used for this method.- Returns:
- Returns the enclosureType.
-
setEnclosureType
@Deprecated public void setEnclosureType(java.lang.String enclosureType)
Deprecated.setEnclosures(List)must be used insteadThis method is deprecated. this method do nothing- Parameters:
enclosureType- The enclosureType to set.
-
getEnclosureURL
@Deprecated public java.lang.String getEnclosureURL()
Deprecated.the URL must be retrieved fromgetEnclosures()list insteadThis method is deprecated. The first enclosure is used for this method.- Returns:
- Returns the enclosureURL.
-
setEnclosureURL
@Deprecated public void setEnclosureURL(java.lang.String enclosureURL)
Deprecated.setEnclosures(List)must be used insteadThis method is deprecated. this method do nothing- Parameters:
enclosureURL- The enclosureURL to set.
-
getGuid
public java.lang.String getGuid()
- Returns:
- Returns the guid.
-
setGuid
public void setGuid(java.lang.String guid)
- Parameters:
guid- The guid to set.
-
getParsedPubDate
@Deprecated public java.util.Date getParsedPubDate()
Deprecated.usegetPublicationDate()insteadRetrieve the pubDate as a Date object.- Returns:
- a Date or null if the pubDate could not be parsed.
- Since:
- jcms-6.1
-
getSource
public java.lang.String getSource()
- Returns:
- Returns the source.
-
setSource
public void setSource(java.lang.String source)
- Parameters:
source- The source to set.
-
getPublicationDate
public java.util.Date getPublicationDate()
- Returns:
- the publicationDate
-
setPublicationDate
public void setPublicationDate(java.util.Date publicationDate)
- Parameters:
publicationDate- the publicationDate to set
-
getPubDate
@Deprecated public java.lang.String getPubDate()
Deprecated.usegetPublicationDate()instead and reformat the dateGet the value of pubDate. This method is deprecated. getPublicationDate must be use instead This method returns date in ISO 8601 format- Returns:
- Value of pubDate.
-
setPubDate
@Deprecated public void setPubDate(java.lang.String v)
Deprecated.usesetPublicationDate(Date)insteadSet the value of pubDate. This method is deprecated and setPublication(Date date) must be use instead- Parameters:
v- Value to assign to pubDate.
-
-