Class Channel


  • public class Channel
    extends java.lang.Object
    Class representing the RSS channel.
    • Constructor Summary

      Constructors 
      Constructor Description
      Channel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(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.String getDescription()
      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.String getLink()
      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.String getTitle()
      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.
      int hashCode()  
      void setCategory​(java.lang.String category)
      Set category for the channel.
      void setCopyright​(java.lang.String copyright)
      Set copyright notice for content in the channel.
      void setDescription​(java.lang.String description)
      Set phrase or sentence describing the channel.
      void setGenerator​(java.lang.String generator)
      Set a string indicating the program used to generate the channel.
      void setImage​(Image image)
      Set a GIF, JPEG or PNG image that can be displayed with the channel.
      void setLanguage​(java.lang.String language)
      Set the language the channel is written in.
      void setLastBuildDate​(java.lang.String lastBuildDate)
      Set the last time the content of the channel changed.
      void setLink​(java.lang.String link)
      Set the URL to the HTML website corresponding to the channel.
      void setManagingEditor​(java.lang.String managingEditor)
      Set email address for person responsible for editorial content.
      void setPubDate​(java.lang.String pubDate)
      Set the publication date for the content in the channel.
      void setTitle​(java.lang.String title)
      Set the name of the channel.
      void setTtl​(java.lang.String ttl)
      Set ttl (time to live).
      void setWebMaster​(java.lang.String webMaster)
      Set email address for person responsible for technical issues relating to channel.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Channel

        public 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object