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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSorts 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.voidsetCreator(String creator) Setter for the fieldcreator.voidsetDescription(Description description) Setter for the fielddescription.voidsetDocType(String docType) Setter for the fielddocType.voidSetter for the fieldlink.voidsetPubDate(Date pubDate) Setter for the fieldpubDate.voidSetter 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:
compareToin interfaceComparable<RssItem>
-