public interface SyndEntry extends Cloneable, CopyFrom, Extendable
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a deep clone of the object.
|
SyndLink |
findRelatedLink(String relation)
Returns the first instance of a SyndLink with the specified relation, or null
|
String |
getAuthor()
Returns the name of the first entry author in the collection of authors.
|
List<SyndPerson> |
getAuthors()
Returns the entry authors.
|
List<SyndCategory> |
getCategories()
Returns the entry categories.
|
String |
getComments()
URL of a page for comments relating to the item.
|
List<SyndContent> |
getContents()
Returns the entry contents.
|
List<SyndPerson> |
getContributors()
Returns the feed author.
|
SyndContent |
getDescription()
Returns the entry description.
|
List<SyndEnclosure> |
getEnclosures()
Returns the entry enclosures.
|
List<org.jdom2.Element> |
getForeignMarkup()
Returns foreign markup found at channel level.
|
String |
getLink()
Returns the entry link.
|
List<SyndLink> |
getLinks()
Returns the entry links
|
Module |
getModule(String uri)
Returns the module identified by a given URI.
|
List<Module> |
getModules()
Returns the entry modules.
|
Date |
getPublishedDate()
Returns the entry published date.
|
SyndFeed |
getSource()
Returns the entry source.
|
String |
getTitle()
Returns the entry title.
|
SyndContent |
getTitleEx()
Returns the entry title as a text construct.
|
Date |
getUpdatedDate()
Returns the entry updated date.
|
String |
getUri()
Returns the entry URI.
|
Object |
getWireEntry()
Return the original item this SyndEntry is generated from.
|
void |
setAuthor(String author)
Sets the entry author.
|
void |
setAuthors(List<SyndPerson> authors)
Sets the entry author.
|
void |
setCategories(List<SyndCategory> categories)
Sets the entry categories.
|
void |
setComments(String comments)
URL of a page for comments relating to the item.
|
void |
setContents(List<SyndContent> contents)
Sets the entry contents.
|
void |
setContributors(List<SyndPerson> contributors)
Sets the feed contributors.
|
void |
setDescription(SyndContent description)
Sets the entry description.
|
void |
setEnclosures(List<SyndEnclosure> enclosures)
Sets the entry enclosures.
|
void |
setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
Sets foreign markup found at channel level.
|
void |
setLink(String link)
Sets the entry link.
|
void |
setLinks(List<SyndLink> links)
Sets the entry links.
|
void |
setModules(List<Module> modules)
Sets the entry modules.
|
void |
setPublishedDate(Date publishedDate)
Sets the entry published date.
|
void |
setSource(SyndFeed source)
Sets the entry source feed (for use if different from containing feed)
|
void |
setTitle(String title)
Sets the entry title.
|
void |
setTitleEx(SyndContent title)
Sets the entry title as a text construct.
|
void |
setUpdatedDate(Date updatedDate)
Sets the entry updated date.
|
void |
setUri(String uri)
Sets the entry URI.
|
copyFrom, getInterfaceString getUri()
How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
The returned URI is a normalized URI as specified in RFC 2396bis.
void setUri(String uri)
How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
uri - the entry URI to set, null if none.String getTitle()
void setTitle(String title)
title - the entry title to set, null if none.SyndContent getTitleEx()
void setTitleEx(SyndContent title)
title - the entry title to set, null if none.String getLink()
void setLink(String link)
link - the entry link to set, null if none.void setLinks(List<SyndLink> links)
links - the entry links to set, null if none.SyndContent getDescription()
void setDescription(SyndContent description)
description - the entry description to set, null if none.List<SyndContent> getContents()
void setContents(List<SyndContent> contents)
contents - the list of SyndContentImpl elements with the entry contents to set, an empty
list or null if none.List<SyndEnclosure> getEnclosures()
void setEnclosures(List<SyndEnclosure> enclosures)
enclosures - the list of SyndEnclosure elements with the entry enclosures to set, an
empty list or null if none.Date getPublishedDate()
This method is a convenience method, it maps to the Dublin Core module date.
void setPublishedDate(Date publishedDate)
This method is a convenience method, it maps to the Dublin Core module date.
publishedDate - the entry published date to set, null if none.Date getUpdatedDate()
void setUpdatedDate(Date updatedDate)
updatedDate - the entry updated date to set, null if none.List<SyndPerson> getAuthors()
For Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
void setAuthors(List<SyndPerson> authors)
For Atom feeds, this sets the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
authors - the feed author to set, null if none.String getAuthor()
For Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
void setAuthor(String author)
For Atom feeds, this sets the feed author's name, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
author - the feed author to set, null if none.List<SyndPerson> getContributors()
For Atom feeds, this returns the contributors as a list of SyndPerson objects
void setContributors(List<SyndPerson> contributors)
Returns contributors as a list of SyndPerson objects.
contributors - the feed contributors to set, null if none.List<SyndCategory> getCategories()
This method is a convenience method, it maps to the Dublin Core module subjects.
void setCategories(List<SyndCategory> categories)
This method is a convenience method, it maps to the Dublin Core module subjects.
categories - the list of SyndCategoryImpl elements with the entry categories to set, an
empty list or null if none.SyndFeed getSource()
This returns the entry source as a SyndFeed
void setSource(SyndFeed source)
source - the original SyndFeed that contained this articleObject getWireEntry()
Module getModule(String uri)
getModule in interface Extendableuri - the URI of the ModuleImpl.List<Module> getModules()
getModules in interface Extendablevoid setModules(List<Module> modules)
setModules in interface Extendablemodules - the list of ModuleImpl elements with the entry modules to set, an empty list
or null if none.List<org.jdom2.Element> getForeignMarkup()
void setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
foreignMarkup - Opaque object to discourage useString getComments()
null.void setComments(String comments)
comments - URLObject clone() throws CloneNotSupportedException
CloneNotSupportedException - thrown if an element of the object cannot be cloned.Copyright © 2015. All Rights Reserved.