- java.lang.Object
-
- com.apptasticsoftware.rssreader.Channel
-
public class Channel extends java.lang.ObjectClass representing the RSS channel.
-
-
Constructor Summary
Constructors Constructor Description Channel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getCategory()Get category for the channel.java.util.Optional<java.lang.String>getCopyright()Get gopyright notice for content in the channel.java.lang.StringgetDescription()Get phrase or sentence describing the channel.java.util.Optional<java.lang.String>getGenerator()Get a string indicating the program used to generate the channel.java.util.Optional<Image>getImage()Get a GIF, JPEG or PNG image that can be displayed with the channel.java.util.Optional<java.lang.String>getLanguage()Get the language the channel is written in.java.util.Optional<java.lang.String>getLastBuildDate()Get the last time the content of the channel changed.java.util.Optional<java.time.ZonedDateTime>getLastBuildDateZonedDateTime()Get the last time the content of the channel changed.java.lang.StringgetLink()Get the URL to the HTML website corresponding to the channel.java.util.Optional<java.lang.String>getManagingEditor()Get email address for person responsible for editorial content.java.util.Optional<java.lang.String>getPubDate()Get the publication date for the content in the channel.java.util.Optional<java.time.ZonedDateTime>getPubDateZonedDateTime()Get the publication date for the content in the channel.java.lang.StringgetTitle()Get the name of the channel.java.util.Optional<java.lang.String>getTtl()Get ttl (time to live).java.util.Optional<java.lang.String>getWebMaster()Get email address for person responsible for technical issues relating to channel.inthashCode()voidsetCategory(java.lang.String category)Set category for the channel.voidsetCopyright(java.lang.String copyright)Set copyright notice for content in the channel.voidsetDescription(java.lang.String description)Set phrase or sentence describing the channel.voidsetGenerator(java.lang.String generator)Set a string indicating the program used to generate the channel.voidsetImage(Image image)Set a GIF, JPEG or PNG image that can be displayed with the channel.voidsetLanguage(java.lang.String language)Set the language the channel is written in.voidsetLastBuildDate(java.lang.String lastBuildDate)Set the last time the content of the channel changed.voidsetLink(java.lang.String link)Set the URL to the HTML website corresponding to the channel.voidsetManagingEditor(java.lang.String managingEditor)Set email address for person responsible for editorial content.voidsetPubDate(java.lang.String pubDate)Set the publication date for the content in the channel.voidsetTitle(java.lang.String title)Set the name of the channel.voidsetTtl(java.lang.String ttl)Set ttl (time to live).voidsetWebMaster(java.lang.String webMaster)Set email address for person responsible for technical issues relating to channel.
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Get the name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.- Returns:
- title
-
setTitle
public void setTitle(java.lang.String title)
Set the name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.- Parameters:
title- title
-
getDescription
public java.lang.String getDescription()
Get phrase or sentence describing the channel.- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
Set phrase or sentence describing the channel.- Parameters:
description- channel description
-
getCategory
public java.util.Optional<java.lang.String> getCategory()
Get category for the channel.- Returns:
- category
-
setCategory
public void setCategory(java.lang.String category)
Set category for the channel.- Parameters:
category- channel category
-
getLanguage
public java.util.Optional<java.lang.String> getLanguage()
Get the language the channel is written in.- Returns:
- language
-
setLanguage
public void setLanguage(java.lang.String language)
Set the language the channel is written in.- Parameters:
language- language
-
getLink
public java.lang.String getLink()
Get the URL to the HTML website corresponding to the channel.- Returns:
- link
-
setLink
public void setLink(java.lang.String link)
Set the URL to the HTML website corresponding to the channel.- Parameters:
link- URL
-
getCopyright
public java.util.Optional<java.lang.String> getCopyright()
Get gopyright notice for content in the channel.- Returns:
- URL
-
setCopyright
public void setCopyright(java.lang.String copyright)
Set copyright notice for content in the channel.- Parameters:
copyright- copyright
-
getGenerator
public java.util.Optional<java.lang.String> getGenerator()
Get a string indicating the program used to generate the channel.- Returns:
- generator
-
setGenerator
public void setGenerator(java.lang.String generator)
Set a string indicating the program used to generate the channel.- Parameters:
generator- generator
-
getTtl
public java.util.Optional<java.lang.String> getTtl()
Get ttl (time to live). It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.- Returns:
- time to live
-
setTtl
public void setTtl(java.lang.String ttl)
Set ttl (time to live). It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.- Parameters:
ttl- time to live
-
getPubDate
public java.util.Optional<java.lang.String> getPubDate()
Get the publication date for the content in the channel.- Returns:
- publication date
-
getPubDateZonedDateTime
public java.util.Optional<java.time.ZonedDateTime> getPubDateZonedDateTime()
Get the publication date for the content in the channel.- Returns:
- publication date
-
setPubDate
public void setPubDate(java.lang.String pubDate)
Set the publication date for the content in the channel.- Parameters:
pubDate- publication date
-
getLastBuildDate
public java.util.Optional<java.lang.String> getLastBuildDate()
Get the last time the content of the channel changed.- Returns:
- last build date
-
getLastBuildDateZonedDateTime
public java.util.Optional<java.time.ZonedDateTime> getLastBuildDateZonedDateTime()
Get the last time the content of the channel changed.- Returns:
- last build date
-
setLastBuildDate
public void setLastBuildDate(java.lang.String lastBuildDate)
Set the last time the content of the channel changed.- Parameters:
lastBuildDate- last build date
-
getManagingEditor
public java.util.Optional<java.lang.String> getManagingEditor()
Get email address for person responsible for editorial content.- Returns:
- managing editor
-
setManagingEditor
public void setManagingEditor(java.lang.String managingEditor)
Set email address for person responsible for editorial content.- Parameters:
managingEditor- managing editor
-
getWebMaster
public java.util.Optional<java.lang.String> getWebMaster()
Get email address for person responsible for technical issues relating to channel.- Returns:
- web master
-
setWebMaster
public void setWebMaster(java.lang.String webMaster)
Set email address for person responsible for technical issues relating to channel.- Parameters:
webMaster- web master
-
getImage
public java.util.Optional<Image> getImage()
Get a GIF, JPEG or PNG image that can be displayed with the channel.- Returns:
- image
-
setImage
public void setImage(Image image)
Set a GIF, JPEG or PNG image that can be displayed with the channel.- Parameters:
image- image
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-