Class RssItem


  • public class RssItem
    extends java.lang.Object
    This class implements a RSS Channel's item parser/container.
    Author:
    Olivier Dedieu
    • 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 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.
        use getCategories() instead
        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​(java.lang.String category)
        Deprecated.
        use getCategories() instead
        This 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 instead
        This 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 from getEnclosures() list instead
        This 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 instead
        This 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 from getEnclosures() list instead
        This 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 instead
        This 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.
        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 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.
        use getPublicationDate() instead and reformat the date
        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​(java.lang.String v)
        Deprecated.
        Set the value of pubDate. This method is deprecated and setPublication(Date date) must be use instead
        Parameters:
        v - Value to assign to pubDate.