Package io.goobi.viewer.model.rss
Class Channel
java.lang.Object
io.goobi.viewer.model.rss.Channel
Represents an RSS channel with its metadata and collection of feed items.
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem.Getter for the fieldcopyright.Getter for the fielddescription.getItems()Getter for the fielditems.Getter for the fieldlanguage.getLink()Getter for the fieldlink.Getter for the fieldpubDate.getTitle()Getter for the fieldtitle.voidsetCopyright(String copyright) Setter for the fieldcopyright.voidsetDescription(String description) Setter for the fielddescription.voidsetLanguage(String language) Setter for the fieldlanguage.voidSetter for the fieldlink.voidsetPubDate(Date pubDate) Setter for the fieldpubDate.voidSetter for the fieldtitle.
-
Constructor Details
-
Channel
public Channel()
-
-
Method Details
-
getTitle
Getter for the fieldtitle.- Returns:
- the RSS channel title
-
setTitle
Setter for the fieldtitle.- Parameters:
title- the RSS channel title
-
getLink
Getter for the fieldlink.- Returns:
- the URL of the website associated with this RSS channel
-
setLink
Setter for the fieldlink.- Parameters:
link- the URL of the website associated with this RSS channel
-
getDescription
Getter for the fielddescription.- Returns:
- the human-readable description of this RSS channel
-
setDescription
Setter for the fielddescription.- Parameters:
description- the human-readable description of this RSS channel
-
getLanguage
Getter for the fieldlanguage.- Returns:
- the BCP 47 language code of the channel content (e.g. "de", "en")
-
setLanguage
Setter for the fieldlanguage.- Parameters:
language- the BCP 47 language code of the channel content (e.g. "de", "en")
-
getCopyright
Getter for the fieldcopyright.- Returns:
- the copyright notice for the channel content
-
setCopyright
Setter for the fieldcopyright.- Parameters:
copyright- the copyright notice for the channel content
-
getPubDate
Getter for the fieldpubDate.- Returns:
- the publication date of this RSS channel
-
setPubDate
Setter for the fieldpubDate.- Parameters:
pubDate- the publication date of this RSS channel
-
getItems
Getter for the fielditems.- Returns:
- the list of RSS items contained in this channel
-
addItem
addItem.- Parameters:
item- aRssItemobject.
-