Package com.jalios.util
Class RssItem
- java.lang.Object
-
- com.jalios.util.RssItem
-
public class RssItem extends java.lang.Object
This class implements a RSS Channel's item parser/container.- Version:
- $Revision: 126182 $
- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
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.String
getAuthor()
java.util.List<java.lang.String>
getCategories()
java.lang.String
getCategory()
Deprecated.usegetCategories()
insteadjava.lang.String
getComments()
java.lang.String
getDescription()
Get the value of description.int
getEnclosureLength()
This method is deprecated.java.util.List<Enclosure>
getEnclosures()
java.lang.String
getEnclosureType()
Deprecated.the type must be retrieved fromgetEnclosures()
list insteadjava.lang.String
getEnclosureURL()
Deprecated.the URL must be retrieved fromgetEnclosures()
list insteadjava.lang.String
getGuid()
java.lang.String
getLink()
Get the value of link.java.util.Date
getParsedPubDate()
Deprecated.usegetPublicationDate()
insteadjava.lang.String
getPubDate()
Deprecated.usegetPublicationDate()
instead and reformat the datejava.util.Date
getPublicationDate()
java.lang.String
getSource()
java.lang.String
getTitle()
Get the value of title.void
setAuthor(java.lang.String author)
void
setCategories(java.util.List<java.lang.String> categories)
void
setCategory(java.lang.String category)
Deprecated.usegetCategories()
insteadvoid
setComments(java.lang.String comments)
void
setDescription(java.lang.String v)
Set the value of description.void
setEnclosureLength(int enclosureLength)
Deprecated.setEnclosures(List)
must be used insteadvoid
setEnclosures(java.util.List<Enclosure> enclosures)
void
setEnclosureType(java.lang.String enclosureType)
Deprecated.setEnclosures(List)
must be used insteadvoid
setEnclosureURL(java.lang.String enclosureURL)
Deprecated.setEnclosures(List)
must be used insteadvoid
setGuid(java.lang.String guid)
void
setLink(java.lang.String v)
Set the value of link.void
setPubDate(java.lang.String v)
Deprecated.usesetPublicationDate(Date)
insteadvoid
setPublicationDate(java.util.Date publicationDate)
void
setSource(java.lang.String source)
void
setTitle(java.lang.String v)
Set the value of title.
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
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
- theSyndEntry
to 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.
-
-