Class Channel

java.lang.Object
io.goobi.viewer.model.rss.Channel

public class Channel extends Object
Represents an RSS channel with its metadata and collection of feed items.
Author:
Florian Alpers
  • Constructor Details

    • Channel

      public Channel()
  • Method Details

    • getTitle

      public String getTitle()
      Getter for the field title.
      Returns:
      the RSS channel title
    • setTitle

      public void setTitle(String title)
      Setter for the field title.
      Parameters:
      title - the RSS channel title
    • getLink

      public String getLink()
      Getter for the field link.
      Returns:
      the URL of the website associated with this RSS channel
    • setLink

      public void setLink(String link)
      Setter for the field link.
      Parameters:
      link - the URL of the website associated with this RSS channel
    • getDescription

      public String getDescription()
      Getter for the field description.
      Returns:
      the human-readable description of this RSS channel
    • setDescription

      public void setDescription(String description)
      Setter for the field description.
      Parameters:
      description - the human-readable description of this RSS channel
    • getLanguage

      public String getLanguage()
      Getter for the field language.
      Returns:
      the BCP 47 language code of the channel content (e.g. "de", "en")
    • setLanguage

      public void setLanguage(String language)
      Setter for the field language.
      Parameters:
      language - the BCP 47 language code of the channel content (e.g. "de", "en")
    • getCopyright

      public String getCopyright()
      Getter for the field copyright.
      Returns:
      the copyright notice for the channel content
    • setCopyright

      public void setCopyright(String copyright)
      Setter for the field copyright.
      Parameters:
      copyright - the copyright notice for the channel content
    • getPubDate

      public Date getPubDate()
      Getter for the field pubDate.
      Returns:
      the publication date of this RSS channel
    • setPubDate

      public void setPubDate(Date pubDate)
      Setter for the field pubDate.
      Parameters:
      pubDate - the publication date of this RSS channel
    • getItems

      public List<RssItem> getItems()
      Getter for the field items.
      Returns:
      the list of RSS items contained in this channel
    • addItem

      public void addItem(RssItem item)
      addItem.
      Parameters:
      item - a RssItem object.