Package io.goobi.viewer.model.rss
Class RssItem
java.lang.Object
io.goobi.viewer.model.rss.RssItem
- All Implemented Interfaces:
Comparable<RssItem>
Represents a single object within an RSS feed
- Author:
- Florian Alpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Sorts the items accoring to their publication dateGetter for the fieldcreator
.Getter for the fielddescription
.Getter for the fielddocType
.getLink()
Getter for the fieldlink
.Getter for the fieldpubDate
.getTitle()
Getter for the fieldtitle
.void
setCreator
(String creator) Setter for the fieldcreator
.void
setDescription
(Description description) Setter for the fielddescription
.void
setDocType
(String docType) Setter for the fielddocType
.void
Setter for the fieldlink
.void
setPubDate
(Date pubDate) Setter for the fieldpubDate
.void
Setter for the fieldtitle
.
-
Constructor Details
-
RssItem
public RssItem()
-
-
Method Details
-
getTitle
Getter for the field
title
.- Returns:
- the title
-
setTitle
Setter for the field
title
.- Parameters:
title
- the title to set
-
getLink
Getter for the field
link
.- Returns:
- the link
-
setLink
Setter for the field
link
.- Parameters:
link
- the link to set
-
getDescription
Getter for the field
description
.- Returns:
- the description
-
setDescription
Setter for the field
description
.- Parameters:
description
- the description to set
-
getPubDate
Getter for the field
pubDate
.- Returns:
- the pubDate
-
setPubDate
Setter for the field
pubDate
.- Parameters:
pubDate
- the pubDate to set
-
getCreator
Getter for the field
creator
.- Returns:
- the creator
-
setCreator
Setter for the field
creator
.- Parameters:
creator
- the creator to set
-
setDocType
Setter for the field
docType
.- Parameters:
docType
- the docType to set
-
getDocType
Getter for the field
docType
.- Returns:
- the docType
-
compareTo
Sorts the items accoring to their publication date- Specified by:
compareTo
in interfaceComparable<RssItem>
-