@Introspected
public class JsonFeedItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonFeedItem.Builder
JSON Feed Item Builder.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_ATTACHMENTS |
static java.lang.String |
KEY_AUTHORS |
static java.lang.String |
KEY_BANNER_IMAGE |
static java.lang.String |
KEY_CONTENT_HTML |
static java.lang.String |
KEY_CONTENT_TEXT |
static java.lang.String |
KEY_DATE_MODIFIED |
static java.lang.String |
KEY_DATE_PUBLISHED |
static java.lang.String |
KEY_EXTERNAL_URL |
static java.lang.String |
KEY_ID |
static java.lang.String |
KEY_IMAGE |
static java.lang.String |
KEY_LANGUAGE |
static java.lang.String |
KEY_SUMMARY |
static java.lang.String |
KEY_TAGS |
static java.lang.String |
KEY_TITLE |
static java.lang.String |
KEY_URL |
Constructor and Description |
---|
JsonFeedItem() |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(JsonFeedAttachment attachment) |
void |
addAuthor(JsonFeedAuthor author) |
void |
addTag(java.lang.String tag) |
static JsonFeedItem.Builder |
builder() |
static JsonFeedItem.Builder |
builder(java.lang.String id) |
java.util.List<JsonFeedAttachment> |
getAttachments()
Attachments associated with the item.
|
java.util.List<JsonFeedAuthor> |
getAuthors()
List of authors of the item.
|
java.lang.String |
getBannerImage()
The URL of an image to use as a banner.
|
java.lang.String |
getContentHtml()
The html content of the item in the feed.
|
java.lang.String |
getContentText()
The text content of the item in the feed.
|
java.lang.String |
getDateModified()
Specifies the last modified date in RFC 3339.
|
java.lang.String |
getDatePublished()
Specifies the publishing date in RFC 3339.
|
java.lang.String |
getExternalUrl()
The URL of a page elsewhere.
|
java.lang.String |
getId()
Unique id for that item for that feed over time.
|
java.lang.String |
getImage()
The URL of the main image for the item.
|
RssLanguage |
getLanguage()
The primary language for the item in the format specified in RFC 5646.
|
java.lang.String |
getSummary()
Plain text sentence or two describing the item.
|
java.util.List<java.lang.String> |
getTags()
Tags associated with the item.
|
java.lang.String |
getTitle()
Title of the item in feed.
|
java.lang.String |
getUrl()
The URL of the resource described by the item.
|
void |
setAttachments(java.util.List<JsonFeedAttachment> attachments)
Attachments associated with the item.
|
void |
setAuthors(java.util.List<JsonFeedAuthor> authors)
List of authors of the item.
|
void |
setBannerImage(java.lang.String bannerImage)
The URL of an image to use as a banner.
|
void |
setContentHtml(java.lang.String contentHtml)
The html content of the item in the feed.
|
void |
setContentText(java.lang.String contentText)
The text content of the item in the feed.
|
void |
setDateModified(java.lang.String dateModified)
Specifies the last modified date in RFC 3339.
|
void |
setDatePublished(java.lang.String datePublished)
Specifies the publishing date in RFC 3339.
|
void |
setExternalUrl(java.lang.String externalUrl)
The URL of a page elsewhere.
|
void |
setId(java.lang.String id)
Unique id for that item for that feed over time.
|
void |
setImage(java.lang.String image)
The URL of the main image for the item.
|
void |
setLanguage(RssLanguage language)
The primary language for the item in the format specified in RFC 5646.
|
void |
setSummary(java.lang.String summary)
Plain text sentence or two describing the item.
|
void |
setTags(java.util.List<java.lang.String> tags)
Tags associated with the item.
|
void |
setTitle(java.lang.String title)
Title of the item in feed.
|
void |
setUrl(java.lang.String url)
The URL of the resource described by the item.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
public static final java.lang.String KEY_ID
public static final java.lang.String KEY_URL
public static final java.lang.String KEY_EXTERNAL_URL
public static final java.lang.String KEY_TITLE
public static final java.lang.String KEY_CONTENT_HTML
public static final java.lang.String KEY_CONTENT_TEXT
public static final java.lang.String KEY_SUMMARY
public static final java.lang.String KEY_IMAGE
public static final java.lang.String KEY_BANNER_IMAGE
public static final java.lang.String KEY_DATE_PUBLISHED
public static final java.lang.String KEY_DATE_MODIFIED
public static final java.lang.String KEY_AUTHORS
public static final java.lang.String KEY_TAGS
public static final java.lang.String KEY_LANGUAGE
public static final java.lang.String KEY_ATTACHMENTS
public static JsonFeedItem.Builder builder()
JsonFeedItem
.public static JsonFeedItem.Builder builder(java.lang.String id)
id
- Id of the feed entryJsonFeedItem
.@NonNull public java.lang.String getId()
public void setId(@NonNull java.lang.String id)
id
- unique id of the item@Nullable public java.lang.String getUrl()
public void setUrl(@Nullable java.lang.String url)
url
- the URL of the resource described by the item@Nullable public java.lang.String getExternalUrl()
public void setExternalUrl(@Nullable java.lang.String externalUrl)
externalUrl
- the URL of a page@Nullable public java.lang.String getTitle()
public void setTitle(@Nullable java.lang.String title)
title
- title of the item in feed@Nullable public java.lang.String getContentHtml()
public void setContentHtml(@Nullable java.lang.String contentHtml)
contentHtml
- the html content of the item in the feed@Nullable public java.lang.String getContentText()
public void setContentText(@Nullable java.lang.String contentText)
contentText
- the text content of the item in the feed@Nullable public java.lang.String getSummary()
public void setSummary(@Nullable java.lang.String summary)
summary
- plain text sentence or two describing the item@Nullable public java.lang.String getImage()
public void setImage(@Nullable java.lang.String image)
image
- the URL of the main image for the item@Nullable public java.lang.String getBannerImage()
public void setBannerImage(@Nullable java.lang.String bannerImage)
bannerImage
- the URL of an image to use as a banner@Nullable public java.lang.String getDatePublished()
public void setDatePublished(@Nullable java.lang.String datePublished)
datePublished
- specifies the publishing date in RFC 3339@Nullable public java.lang.String getDateModified()
public void setDateModified(@Nullable java.lang.String dateModified)
dateModified
- specifies the last modified date in RFC 3339@Nullable public java.util.List<JsonFeedAuthor> getAuthors()
public void setAuthors(@Nullable java.util.List<JsonFeedAuthor> authors)
authors
- list of authors of the item@Nullable public java.util.List<java.lang.String> getTags()
public void setTags(@Nullable java.util.List<java.lang.String> tags)
tags
- associated tags with the item@Nullable public RssLanguage getLanguage()
public void setLanguage(@Nullable RssLanguage language)
language
- the primary language for the feed@Nullable public java.util.List<JsonFeedAttachment> getAttachments()
public void setAttachments(@Nullable java.util.List<JsonFeedAttachment> attachments)
attachments
- attachments associated with the itempublic void addAuthor(@NonNull JsonFeedAuthor author)
author
- JSON Feed Item's Authorpublic void addAttachment(JsonFeedAttachment attachment)
attachment
- JSON Feed Item's Attachmentpublic void addTag(@NonNull java.lang.String tag)
tag
- JSON Feed Item's tag@NonNull public java.util.Map<java.lang.String,java.lang.Object> toMap()