Class RssItem

java.lang.Object
io.goobi.viewer.model.rss.RssItem
All Implemented Interfaces:
Comparable<RssItem>

public class RssItem extends Object implements Comparable<RssItem>
Represents a single object within an RSS feed
Author:
Florian Alpers
  • Constructor Details

    • RssItem

      public RssItem()
  • Method Details

    • getTitle

      public String getTitle()

      Getter for the field title.

      Returns:
      the title
    • setTitle

      public void setTitle(String title)

      Setter for the field title.

      Parameters:
      title - the title to set
    • getLink

      public String getLink()

      Getter for the field link.

      Returns:
      the link
    • setLink

      public void setLink(String link)

      Setter for the field link.

      Parameters:
      link - the link to set
    • getDescription

      public Description getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription

      public void setDescription(Description description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • getPubDate

      public Date getPubDate()

      Getter for the field pubDate.

      Returns:
      the pubDate
    • setPubDate

      public void setPubDate(Date pubDate)

      Setter for the field pubDate.

      Parameters:
      pubDate - the pubDate to set
    • getCreator

      public String getCreator()

      Getter for the field creator.

      Returns:
      the creator
    • setCreator

      public void setCreator(String creator)

      Setter for the field creator.

      Parameters:
      creator - the creator to set
    • setDocType

      public void setDocType(String docType)

      Setter for the field docType.

      Parameters:
      docType - the docType to set
    • getDocType

      public String getDocType()

      Getter for the field docType.

      Returns:
      the docType
    • compareTo

      public int compareTo(RssItem other)
      Sorts the items accoring to their publication date
      Specified by:
      compareTo in interface Comparable<RssItem>