com.jalios.util
Class RssItem

java.lang.Object
  extended by com.jalios.util.RssItem

public class RssItem
extends Object

This class implements a RSS Channel's item parser/container.

Version:
$Revision: 27751 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
RssItem()
          Creates a new RssItem.
RssItem(org.jdom.Element element)
          Create a new RssItem and fill this object with the data containing the DOM element
RssItem(com.sun.syndication.feed.synd.SyndEntry entry)
          Create a new RssItem and fill this object with the data containing the SyndEntry
 
Method Summary
 String getAuthor()
           
 List<String> getCategories()
           
 String getCategory()
          Deprecated.  
 String getComments()
           
 String getDescription()
          Get the value of description.
 int getEnclosureLength()
          This method is deprecated.
 List<Enclosure> getEnclosures()
           
 String getEnclosureType()
          Deprecated.  
 String getEnclosureURL()
          Deprecated.  
 String getGuid()
           
 String getLink()
          Get the value of link.
 Date getParsedPubDate()
          Deprecated.  
 String getPubDate()
          Deprecated.  
 Date getPublicationDate()
           
 String getSource()
           
 String getTitle()
          Get the value of title.
 void setAuthor(String author)
           
 void setCategories(List<String> categories)
           
 void setCategory(String category)
          Deprecated.  
 void setComments(String comments)
           
 void setDescription(String v)
          Set the value of description.
 void setEnclosureLength(int enclosureLength)
          Deprecated.  
 void setEnclosures(List<Enclosure> enclosures)
           
 void setEnclosureType(String enclosureType)
          Deprecated.  
 void setEnclosureURL(String enclosureURL)
          Deprecated.  
 void setGuid(String guid)
           
 void setLink(String v)
          Set the value of link.
 void setPubDate(String v)
          Deprecated.  
 void setPublicationDate(Date publicationDate)
           
 void setSource(String source)
           
 void setTitle(String v)
          Set the value of title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final 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 - the SyndEntry 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 String getTitle()
Get the value of title.

Returns:
Value of title.

setTitle

public void setTitle(String v)
Set the value of title.

Parameters:
v - Value to assign to title.

getLink

public String getLink()
Get the value of link.

Returns:
Value of link.

setLink

public void setLink(String v)
Set the value of link.

Parameters:
v - Value to assign to link.

getDescription

public String getDescription()
Get the value of description.

Returns:
Value of description.

setDescription

public void setDescription(String v)
Set the value of description.

Parameters:
v - Value to assign to description.

getAuthor

public String getAuthor()
Returns:
Returns the author.

setAuthor

public void setAuthor(String author)
Parameters:
author - The author to set.

getCategory

@Deprecated
public String getCategory()
Deprecated. 

This 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(String category)
Deprecated. 

This method is deprecated. this method add a category to categories list.

Parameters:
category - The category to set.

getCategories

public List<String> getCategories()
Returns:
the categories

setCategories

public void setCategories(List<String> categories)
Parameters:
categories - the categories to set

getComments

public String getComments()
Returns:
Returns the comments.

setComments

public void setComments(String comments)
Parameters:
comments - The comments to set.

getEnclosures

public List<Enclosure> getEnclosures()
Returns:
the enclosures

setEnclosures

public void setEnclosures(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. 

This method is deprecated. this method do nothing, setEnclosures(List) must be used instead

Parameters:
enclosureLength - The enclosureLength to set.

getEnclosureType

@Deprecated
public String getEnclosureType()
Deprecated. 

This method is deprecated. The first enclosure is used for this method.

Returns:
Returns the enclosureType.

setEnclosureType

@Deprecated
public void setEnclosureType(String enclosureType)
Deprecated. 

This method is deprecated. this method do nothing, setEnclosures(List) must be used instead

Parameters:
enclosureType - The enclosureType to set.

getEnclosureURL

@Deprecated
public String getEnclosureURL()
Deprecated. 

This method is deprecated. The first enclosure is used for this method.

Returns:
Returns the enclosureURL.

setEnclosureURL

@Deprecated
public void setEnclosureURL(String enclosureURL)
Deprecated. 

This method is deprecated. this method do nothing, setEnclosures(List) must be used instead

Parameters:
enclosureURL - The enclosureURL to set.

getGuid

public String getGuid()
Returns:
Returns the guid.

setGuid

public void setGuid(String guid)
Parameters:
guid - The guid to set.

getParsedPubDate

@Deprecated
public Date getParsedPubDate()
Deprecated. 

Retrieve the pubDate as a Date object.

Returns:
a Date or null if the pubDate could not be parsed.
Since:
jcms-6.1

getSource

public String getSource()
Returns:
Returns the source.

setSource

public void setSource(String source)
Parameters:
source - The source to set.

getPublicationDate

public Date getPublicationDate()
Returns:
the publicationDate

setPublicationDate

public void setPublicationDate(Date publicationDate)
Parameters:
publicationDate - the publicationDate to set

getPubDate

@Deprecated
public String getPubDate()
Deprecated. 

Get 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(String v)
Deprecated. 

Set the value of pubDate. This methos is deprecated and setPublication(Date date) must be use instead

Parameters:
v - Value to assign to pubDate.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.