Class Item

    • Constructor Detail

      • Item

        public Item()
    • Method Detail

      • equals

        public boolean equals​(Object other)
        Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

        Overrides:
        equals in class Object
        Parameters:
        other - he reference object with which to compare.
        Returns:
        true if 'this' object is equal to the 'other' object.
      • hashCode

        public int hashCode()
        Returns a hashcode value for the object.

        It follows the contract defined by the Object hashCode() method.

        Overrides:
        hashCode in class Object
        Returns:
        the hashcode of the bean object.
      • toString

        public String toString()
        Returns the String representation for the object.

        Overrides:
        toString in class Object
        Returns:
        String representation for the object.
      • getTitle

        public String getTitle()
        Returns the item title.

        Returns:
        the item title, null if none.
      • setTitle

        public void setTitle​(String title)
        Sets the item title.

        Parameters:
        title - the item title to set, null if none.
      • getLink

        public String getLink()
        Returns the item link.

        Returns:
        the item link, null if none.
      • setLink

        public void setLink​(String link)
        Sets the item link.

        Parameters:
        link - the item link to set, null if none.
      • getUri

        public String getUri()
        Returns the item uri.

        Returns:
        the item uri, null if none.
      • setUri

        public void setUri​(String uri)
        Sets the item uri.

        Parameters:
        uri - the item uri to set, null if none.
      • getDescription

        public Description getDescription()
        Returns the item description.

        Returns:
        the item description, null if none.
      • setDescription

        public void setDescription​(Description description)
        Sets the item description.

        Parameters:
        description - the item description to set, null if none.
      • getContent

        public Content getContent()
        Returns the item content.

        Returns:
        the item content, null if none.
      • setContent

        public void setContent​(Content content)
        Sets the item content.

        Parameters:
        content - the item content to set, null if none.
      • getSource

        public Source getSource()
        Returns the item source.

        Returns:
        the item source, null if none.
      • setSource

        public void setSource​(Source source)
        Sets the item source.

        Parameters:
        source - the item source to set, null if none.
      • getEnclosures

        public List<Enclosure> getEnclosures()
        Returns the item enclosures.

        Returns:
        a list of Enclosure elements with the item enclosures, an empty list if none.
      • setEnclosures

        public void setEnclosures​(List<Enclosure> enclosures)
        Sets the item enclosures.

        Parameters:
        enclosures - the list of Enclosure elements with the item enclosures to set, an empty list or null if none.
      • getCategories

        public List<Category> getCategories()
        Returns the item categories.

        Returns:
        a list of Category elements with the item categories, an empty list if none.
      • setCategories

        public void setCategories​(List<Category> categories)
        Sets the item categories.

        Parameters:
        categories - the list of Categories elements with the item categories to set, an empty list or null if none.
      • getGuid

        public Guid getGuid()
        Returns the item GUID.

        Returns:
        the item GUID, null if none.
      • setGuid

        public void setGuid​(Guid guid)
        Sets the item GUID.

        Parameters:
        guid - the item GUID to set, null if none.
      • getComments

        public String getComments()
        Returns the item comments.

        Returns:
        the item comments, null if none.
      • setComments

        public void setComments​(String comments)
        Sets the item comments.

        Parameters:
        comments - the item comments to set, null if none.
      • getAuthor

        public String getAuthor()
        Returns the item author.

        Returns:
        the item author, null if none.
      • setAuthor

        public void setAuthor​(String author)
        Sets the item author.

        Parameters:
        author - the item author to set, null if none.
      • getModules

        public List<Module> getModules()
        Returns the item modules.

        Specified by:
        getModules in interface Extendable
        Returns:
        a list of ModuleImpl elements with the item modules, an empty list if none.
      • setModules

        public void setModules​(List<Module> modules)
        Sets the item modules.

        Specified by:
        setModules in interface Extendable
        Parameters:
        modules - the list of ModuleImpl elements with the item modules to set, an empty list or null if none.
      • getModule

        public Module getModule​(String uri)
        Returns the module identified by a given URI.

        Specified by:
        getModule in interface Extendable
        Parameters:
        uri - the URI of the ModuleImpl.
        Returns:
        The module with the given URI, null if none.
      • getPubDate

        public Date getPubDate()
        Returns the item publishing date.

        Returns:
        the item publishing date, null if none.
      • setPubDate

        public void setPubDate​(Date pubDate)
        Sets the item publishing date.

        Parameters:
        pubDate - the item publishing date to set, null if none.
      • getExpirationDate

        public Date getExpirationDate()
        Returns the item expiration date.

        Returns:
        the item expiration date, null if none.
      • setExpirationDate

        public void setExpirationDate​(Date expirationDate)
        Sets the item expiration date.

        Parameters:
        expirationDate - the item expiration date to set, null if none.
      • getForeignMarkup

        public List<org.jdom2.Element> getForeignMarkup()
        Returns foreign markup found at item level.

        Returns:
        Opaque object to discourage use
      • setForeignMarkup

        public void setForeignMarkup​(List<org.jdom2.Element> foreignMarkup)
        Sets foreign markup found at item level.

        Parameters:
        foreignMarkup - Opaque object to discourage use