public class RssEntry extends Object implements RssEntity, Serializable, Cloneable
RssFeed
.Modifier and Type | Field and Description |
---|---|
protected URL |
entryLink
The entry's link URL (set lazily in
getLink() . |
protected com.sun.syndication.feed.synd.SyndEntry |
nativeEntry
The raw ROME feed entry.
|
Constructor and Description |
---|
RssEntry()
Creates a new RssEntry object that is completely blank.
|
RssEntry(RssEntry existingEntry)
Creates a new RssEntry object as a copy of an existing entry.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this object.
|
String |
getAuthor()
Get this entry's author.
|
List<String> |
getAuthors()
Get this entry's authors.
|
Date |
getDate()
Get this entry's publication date.
|
String |
getDescription()
Get this entry's description.
|
String |
getDescriptionType()
Get the MIME type of the description (like "text/html" or
"text/plain").
|
URL |
getLink()
Get this entry's link as a URL.
|
String |
getTitle()
Get this entry's title.
|
void |
setAuthor(String author)
Set this entry's author.
|
void |
setAuthors(List<String> authors)
Set this entry's authors.
|
void |
setDate(Date date)
Set this entry's publication date.
|
void |
setDescription(String description)
Set this entry's description.
|
void |
setDescriptionType(String mimeType)
Set the MIME type for this entry's description.
|
void |
setLink(URL link)
Set this entry's link.
|
void |
setTitle(String title)
Set this entry's title.
|
String |
toString()
Generate a printable version of this entry.
|
protected com.sun.syndication.feed.synd.SyndEntry nativeEntry
public RssEntry()
public RssEntry(RssEntry existingEntry)
existingEntry
- The entry to copypublic String getAuthor()
public void setAuthor(String author)
public List<String> getAuthors()
getAuthors
in interface RssEntity
public void setAuthors(List<String> authors)
setAuthors
in interface RssEntity
authors
- A list of this entry's authorspublic Date getDate()
public void setDate(Date date)
public String getDescription()
getDescription
in interface RssEntity
public void setDescription(String description)
setDescription
in interface RssEntity
description
- The new descriptionpublic String getDescriptionType()
public void setDescriptionType(String mimeType)
mimeType
- The new MIME typepublic URL getLink()
public void setLink(URL link)
public String getTitle()
public void setTitle(String title)
public Object clone()