public class Feed extends Object
| Constructor and Description |
|---|
Feed() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthor(Person author) |
void |
addCategory(Category category) |
void |
addContributor(Person contributor) |
void |
addImage(Image image) |
void |
addItem(Item item) |
void |
addKeyword(String keyword) |
void |
addKeywords(Collection<String> keywords) |
void |
addLink(Link link) |
void |
addOtherValue(OtherValueKey key,
String value) |
void |
addSkipDay(String skipDay) |
void |
addSkipHour(int skipHour) |
List<Person> |
getAuthors()
Artist(s) or author(s) of the feed.
|
boolean |
getBlock() |
TypedString |
getBrowserFriendly() |
Set<Category> |
getCategories()
Specify one or more categories that the channel belongs to.
|
String |
getCloud()
Allows processes to register with a cloud to be notified of updates to the channel, implementing
a lightweight publish-subscribe protocol for RSS feeds.
|
List<Person> |
getContributors() |
Copyright |
getCopyright()
Copyright notice for content in the channel.
|
Credit |
getCredit() |
TypedString |
getDescription()
Phrase or sentence describing the channel.
|
String |
getDocs()
A URL that points to the documentation for the format used in the RSS file.
|
String |
getEmail()
|
String |
getGenerator()
A
String indicating the program used to generate the channel. |
GeoPoint |
getGeoPoint()
|
String |
getId()
The
id element conveys a permanent, universally unique identifier for an entry or feed. |
List<Image> |
getImages()
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
|
List<Item> |
getItems()
An item may represent a "story" -- much like a story in a newspaper or magazine; if so its
description is a synopsis of the story, and the link points to the full story.
|
Set<String> |
getKeywords()
Not in RSS specification.
|
String |
getLanguage()
The language the channel is written in.
|
ZonedDateTime |
getLastBuildDate()
The last time the content of the channel changed.
|
Set<Link> |
getLinks()
Collection of all links defined at the feed or channel level.
|
String |
getLocation()
The geographic location for this feed.
|
String |
getManagingEditor()
Email address for person responsible for editorial content.
|
Map<OtherValueKey,String> |
getOtherValues()
A
Map containing any value present in the podcast XML that is not mapped to any of the
other values present here. |
Person |
getOwner()
Information that can be used to contact the owner of the podcast for communication specifically
about their podcast.
|
ZonedDateTime |
getPubDate()
The publication date for the content in the channel.
|
Rating |
getRating()
The rating for this item.
|
List<String> |
getSkipDays()
A hint for aggregators telling them which days they can skip.
|
List<Integer> |
getSkipHours()
A hint for aggregators telling them which hours they can skip.
|
String |
getSubtitle()
Description of the feed.
|
String |
getSummary() |
String |
getTextInput()
Specifies a text input box that can be displayed with the channel.
|
String |
getTitle()
The name of the channel or feed
|
Duration |
getTtl()
TTL stands for time to live.
|
String |
getType() |
UpdateInfo |
getUpdateInfo()
Update information for this feed.
|
String |
getWebMaster()
Email address for person responsible for technical issues relating to channel.
|
boolean |
isComplete() |
void |
setBlock(boolean block) |
void |
setBrowserFriendly(TypedString browserFriendly) |
void |
setCloud(String cloud) |
void |
setComplete(boolean complete) |
void |
setCopyright(Copyright copyright) |
void |
setCredit(Credit credit) |
void |
setDescription(TypedString description) |
void |
setDocs(String docs) |
void |
setEmail(String email) |
void |
setGenerator(String generator) |
void |
setGeoPoint(GeoPoint geoPoint) |
void |
setId(String id) |
void |
setLanguage(String language) |
void |
setLastBuildDate(ZonedDateTime lastBuildDate) |
void |
setLatitude(BigDecimal latitude) |
void |
setLocation(String location) |
void |
setLongitude(BigDecimal longitude) |
void |
setManagingEditor(String managingEditor) |
void |
setOwner(Person owner) |
void |
setPubDate(ZonedDateTime pubDate) |
void |
setRating(Rating rating) |
void |
setSubtitle(String subtitle) |
void |
setSummary(String summary) |
void |
setTextInput(String textInput) |
void |
setTitle(String title) |
void |
setTtl(Duration ttl) |
void |
setType(String type) |
void |
setUpdateBase(ZonedDateTime base) |
void |
setUpdateFrequency(Integer frequency) |
void |
setUpdateInfo(UpdateInfo updateInfo) |
void |
setUpdatePeriod(String period) |
void |
setWebMaster(String webMaster) |
String |
toString() |
public String getId()
The id element conveys a permanent, universally unique identifier for an entry or feed.
Part of Atom specification. Not listed in RSS specification.
String or nullpublic void setId(String id)
public void setTitle(String title)
public Set<Link> getLinks()
Collection of all links defined at the feed or channel level.
Required in RSS specification. Listed in Atom specification as element link.
Set, never nullpublic void addLink(Link link)
public TypedString getDescription()
TypedString or nullpublic void setDescription(TypedString description)
public List<Item> getItems()
public void addItem(Item item)
public String getLanguage()
String or nullpublic void setLanguage(String language)
public Copyright getCopyright()
Copyright instance or nullpublic void setCopyright(Copyright copyright)
public String getManagingEditor()
String or nullpublic void setManagingEditor(String managingEditor)
public String getWebMaster()
String or nullpublic void setWebMaster(String webMaster)
public ZonedDateTime getPubDate()
ZonedDateTime or nullpublic void setPubDate(ZonedDateTime pubDate)
public ZonedDateTime getLastBuildDate()
The last time the content of the channel changed.
Optional in RSS specification. Listed in Atom specification as element updated.
ZonedDateTime or nullpublic void setLastBuildDate(ZonedDateTime lastBuildDate)
public Set<Category> getCategories()
Item-level category element.public void addCategory(Category category)
public String getGenerator()
String indicating the program used to generate the channel.String or nullpublic void setGenerator(String generator)
public String getDocs()
String or nullpublic void setDocs(String docs)
public String getCloud()
String or nullpublic void setCloud(String cloud)
public Duration getTtl()
TTL stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.
Optional in RSS specification.
Duration or nullpublic void setTtl(Duration ttl)
public List<Image> getImages()
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
List, never nullpublic void addImage(Image image)
public String getTextInput()
String or nullpublic void setTextInput(String textInput)
public List<Integer> getSkipHours()
List, never nullpublic void addSkipHour(int skipHour)
public List<String> getSkipDays()
List, never nullpublic void addSkipDay(String skipDay)
public String getSubtitle()
Description of the feed.
Not in RSS specification. Listed in iTunes RSS spec.
String or nullpublic void setSubtitle(String subtitle)
public List<Person> getAuthors()
Artist(s) or author(s) of the feed.
Not in RSS specification. Listed in Atom spec and iTunes spec.
public void addAuthor(Person author)
public Person getOwner()
Information that can be used to contact the owner of the podcast for communication specifically about their podcast.
Not in RSS specification. Listed in iTunes RSS spec.
Person or nullpublic void setOwner(Person owner)
public void addContributor(Person contributor)
public Set<String> getKeywords()
Not in RSS specification. Listed in iTunes RSS spec.
Set, never nullpublic void addKeyword(String keyword)
public void addKeywords(Collection<String> keywords)
public UpdateInfo getUpdateInfo()
Update information for this feed.
UpdateInfo instance, or nullpublic void setUpdateInfo(UpdateInfo updateInfo)
public void setUpdatePeriod(String period)
public void setUpdateFrequency(Integer frequency)
public void setUpdateBase(ZonedDateTime base)
public Rating getRating()
The rating for this item.
Combines optional elements from iTunes RSS, Media RSS and Google Play spec.
Rating, not nullpublic void setRating(Rating rating)
public String getLocation()
The geographic location for this feed.
Specified in RawVoice namespace specification.
String or nullpublic void setLocation(String location)
public Map<OtherValueKey,String> getOtherValues()
A Map containing any value present in the podcast XML that is not mapped to any of the
other values present here.
See OtherValueKey for a full listing of possible values in this map.
Map, not nullpublic void addOtherValue(OtherValueKey key, String value)
public void setGeoPoint(GeoPoint geoPoint)
public void setLatitude(BigDecimal latitude)
public void setLongitude(BigDecimal longitude)
public boolean getBlock()
public void setBlock(boolean block)
public String getSummary()
public void setSummary(String summary)
public String getType()
public void setType(String type)
public void setEmail(String email)
public Credit getCredit()
public void setCredit(Credit credit)
public boolean isComplete()
public void setComplete(boolean complete)
public TypedString getBrowserFriendly()
public void setBrowserFriendly(TypedString browserFriendly)
Copyright © 2018. All rights reserved.