public class Item extends Object
| Constructor and Description |
|---|
Item() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthor(Person author) |
void |
addCategory(Category category) |
void |
addChapter(Chapter chapter) |
void |
addCredit(Credit credit) |
void |
addHash(Hash hash) |
void |
addImage(Image image) |
void |
addKeyword(String keyword) |
void |
addKeywords(Collection<String> keywords) |
void |
addLink(Link link) |
void |
addMediaContent(MediaContent mediaContent) |
void |
addMediaContents(List<MediaContent> mediaContents) |
void |
addMetamark(Metamark metamark) |
void |
addOtherEnclosure(String key,
Enclosure enclosure) |
void |
addOtherValue(OtherValueKey key,
String value) |
void |
addScene(Scene scene) |
void |
addTranscript(Transcript transcript) |
List<Person> |
getAuthors()
Email address of the author of the item.
|
boolean |
getBlock() |
Set<Category> |
getCategories()
Includes the item in one or more categories.
|
List<Chapter> |
getChapters()
Not in RSS specification.
|
Comments |
getComments()
All information regarding comments for this
Item |
TypedString |
getContent()
list Not in RSS specification.
|
Copyright |
getCopyright()
The
rights element is a Text construct that conveys information about rights held in and
over an entry or feed. |
List<Credit> |
getCredits()
Credits for this
Item |
TypedString |
getDescription()
The item synopsis.
|
Duration |
getDuration()
|
ZonedDateTime |
getEdited()
Date when an item was edited.
|
TypedString |
getEmbed()
As specified in the RawVoice namespace
|
Enclosure |
getEnclosure()
list
|
String |
getEpisode() |
String |
getEpisodeType()
Whether this is a full episode, a trailer or a preview.
|
GeoBox |
getGeoBox() |
GeoPoint |
getGeoPoint()
|
String |
getGuid()
guid stands for globally unique identifier.
|
List<Hash> |
getHashes()
Part of Media RSS namespace specification.
|
List<Image> |
getImages() |
List<String> |
getKeywords()
Not in RSS specification.
|
String |
getLanguage()
Language of this
Item |
License |
getLicense()
License information for this
Item |
Set<Link> |
getLinks()
The URL to the item (RSS spec).
|
List<MediaContent> |
getMediaContents()
A more expressive alternative to
getEnclosure(). |
MediaPlayer |
getMediaPlayer() |
List<Metamark> |
getMetamarks() |
Integer |
getOrder() |
Map<String,Enclosure> |
getOtherEnclosures()
|
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. |
String |
getProvider() |
ZonedDateTime |
getPubDate()
Date when the item was published.
|
Rating |
getRating()
The rating for this item.
|
String |
getRights() |
List<Scene> |
getScenes() |
String |
getSeason() |
String |
getSource()
The RSS channel that the item came from.
|
String |
getSubject()
Not in RSS specification.
|
String |
getSubtitle()
Subtitle of the item.
|
String |
getSummary() |
TypedString |
getTitle()
The title of the item.
|
List<Transcript> |
getTranscripts() |
ZonedDateTime |
getUpdated()
The
updated element is a Date construct indicating the most recent instant in time when
an entry or feed was modified in a way the publisher considers significant. |
ZonedDateTime |
getValidity()
Date (often a range) of validity of a resource.
|
Visibility |
getVisibility() |
boolean |
isHd()
As specified in the RawVoice namespace
|
void |
setBlock(boolean block) |
void |
setComments(Comments comments) |
void |
setContent(TypedString content) |
void |
setCopyright(Copyright copyright) |
void |
setDescription(String description) |
void |
setDescription(TypedString description) |
void |
setDuration(Duration duration) |
void |
setDuration(String duration)
Parse and set duration.
|
void |
setEdited(ZonedDateTime edited) |
void |
setEmbed(TypedString embed) |
void |
setEnclosure(Enclosure enclosure) |
void |
setEpisode(String episode) |
void |
setEpisodeType(String episodeType) |
void |
setGeoBox(GeoBox geoBox) |
void |
setGeoPoint(GeoPoint geoPoint) |
void |
setGuid(String guid) |
void |
setHd(boolean hd) |
void |
setLanguage(String language) |
void |
setLatitude(BigDecimal latitude) |
void |
setLicense(License license) |
void |
setLongitude(BigDecimal longitude) |
void |
setMediaPlayer(MediaPlayer mediaPlayer) |
void |
setNumberOfComments(int number) |
void |
setOrder(Integer order) |
void |
setProvider(String provider) |
void |
setPubDate(ZonedDateTime pubDate) |
void |
setRating(Rating rating) |
void |
setRights(String rights) |
void |
setSeason(String season) |
void |
setSource(String source) |
void |
setSubject(String subject) |
void |
setSubtitle(String subtitle) |
void |
setSummary(String summary) |
void |
setTitle(String title) |
void |
setTitle(TypedString title) |
void |
setUpdated(ZonedDateTime updated) |
void |
setValidity(ZonedDateTime validity) |
void |
setVisibility(Visibility visibility) |
String |
toString() |
public TypedString getTitle()
The title of the item.
Optional as per RSS specification.
TypedString or nullpublic void setTitle(String title)
public void setTitle(TypedString title)
public String getSubtitle()
Subtitle of the item.
Part of the iTunes specification.
String or nullpublic void setSubtitle(String subtitle)
public Set<Link> getLinks()
The URL to the item (RSS spec).
Required in RSS specification. Listed in Atom specification as element link.
Setpublic void addLink(Link link)
public TypedString getDescription()
The item synopsis.
Part of the iTunes specification.
TypedString or nullpublic void setDescription(String description)
public void setDescription(TypedString description)
public void addAuthor(Person author)
public void addCategory(Category category)
public Copyright getCopyright()
The rights element is a Text construct that conveys information about rights held in and
over an entry or feed.
Listed as optional element rights in Atom specification.
Copyright or nullpublic void setCopyright(Copyright copyright)
public Enclosure getEnclosure()
Describes a media object that is attached to the item.
Optional for item elements in RSS specification.
Enclosure or nullpublic void setEnclosure(Enclosure enclosure)
public String getGuid()
guid stands for globally unique identifier. It's a string that uniquely identifies the item. When
present, an aggregator may choose to use this string to determine if an item is new.
<guid>http://some.server.com/weblogItem3207</guid>
There are no rules for the syntax of a guid. Aggregators must view them as a string. It's up to
the source of the feed to establish the uniqueness of the string.
If the guid element has an attribute named "isPermaLink" with a value of true, the reader may
assume that it is a permalink to the item, that is, a url that can be opened in a Web browser,
that points to the full item described by the item element. An example:
<guid isPermaLink="true">http://inessential.com/2002/09/01.php#a2</guid>
isPermaLink is optional, its default value is true. If its value is false, the guid may not be
assumed to be a url, or a url to anything in particular.
Optional for item elements in RSS specification. Required item id as per Atom
specification.
String or nullpublic void setGuid(String guid)
public ZonedDateTime getPubDate()
Date when the item was published.
Optional for entry elements in Atom specification. Not part of RSS specification.
ZonedDateTime or nullpublic void setPubDate(ZonedDateTime pubDate)
public ZonedDateTime getUpdated()
The updated element is a Date construct indicating the most recent instant in time when
an entry or feed was modified in a way the publisher considers significant.
Optional for item elements in RSS specification. Optional for entry elements in
Atom specification.
ZonedDateTime or nullpublic void setUpdated(ZonedDateTime updated)
public ZonedDateTime getValidity()
Date (often a range) of validity of a resource.
Specified in Dublin Core Terms RSS specification.
ZonedDateTime or nullpublic void setValidity(ZonedDateTime validity)
public ZonedDateTime getEdited()
Date when an item was edited.
Specified in Atom Publishing namespace specification.
ZonedDateTime or nullpublic void setEdited(ZonedDateTime edited)
public String getSource()
The RSS channel that the item came from.
Optional for item elements in RSS specification.
String or nullpublic void setSource(String source)
public Rating getRating()
The rating for this item.
Combines optional elements from iTunes RSS, Media RSS and Google Play spec.
Rating, never nullpublic void setRating(Rating rating)
public Duration getDuration()
The duration of the media in the Enclosure of this Item.
Not in RSS specification. Part of iTunes RSS spec.
Duration or nullpublic void setDuration(Duration duration)
public void setDuration(String duration)
duration - String formatted HH:MM:SS, H:MM:SS, MM:SS, or M:SS (H = hours, M = minutes, S
= seconds). If an integer is provided (no colon present), the value is assumed to be
in seconds. If one colon is present, the number to the left is assumed to be minutes,
and the number to the right is assumed to be seconds. If more than two colons are
present, the numbers furthest to the right are ignored.public List<MediaContent> getMediaContents()
A more expressive alternative to getEnclosure(). Not always present.
Part of the Media RSS specification. There are no limitations on the number of content
elements per item, though it is recommended to have only one.
List, never nullMediaContentpublic void addMediaContent(MediaContent mediaContent)
public void addMediaContents(List<MediaContent> mediaContents)
public void addImage(Image image)
public List<String> getKeywords()
Not in RSS specification. Listed in iTunes RSS spec.
List, not nullpublic void addKeyword(String keyword)
public void addKeywords(Collection<String> keywords)
public TypedString getContent()
list Not in RSS specification. Part of Content namespace.
TypedString or nullpublic void setContent(TypedString content)
public String getSubject()
Not in RSS specification. Part of DublinCore namespace.
String or nullpublic void setSubject(String subject)
public Comments getComments()
All information regarding comments for this Item
Comments instance, or nullpublic void setComments(Comments comments)
public void setNumberOfComments(int number)
public List<Chapter> getChapters()
Not in RSS specification. Part of SimpleChapters namespace specifcation.
List, not nullpublic void addChapter(Chapter chapter)
public List<Hash> getHashes()
Part of Media RSS namespace specification.
List, not nullpublic void addHash(Hash hash)
public void setLicense(License license)
public void addCredit(Credit credit)
public String getLanguage()
Language of this Item
Part of the DublinCore namespace specification.
String or nullpublic void setLanguage(String language)
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 Map<String,Enclosure> getOtherEnclosures()
A Map containing any alternative Enclosure in the podcast XML that is not the
main enclosure.
Map, not nullpublic void setGeoPoint(GeoPoint geoPoint)
public void setLatitude(BigDecimal latitude)
public void setLongitude(BigDecimal longitude)
public GeoBox getGeoBox()
public void setGeoBox(GeoBox geoBox)
public Integer getOrder()
public void setOrder(Integer order)
public String getSummary()
public void setSummary(String summary)
public boolean getBlock()
public void setBlock(boolean block)
public String getEpisodeType()
String or nullpublic void setEpisodeType(String episodeType)
public String getEpisode()
public void setEpisode(String episode)
public String getSeason()
public void setSeason(String season)
public MediaPlayer getMediaPlayer()
public void setMediaPlayer(MediaPlayer mediaPlayer)
public void addScene(Scene scene)
public List<Transcript> getTranscripts()
public void addTranscript(Transcript transcript)
public boolean isHd()
true if the video media specified in the child <enclosure> is in High
Definition (ie. any video that is widescreen (16:9 aspect ratio) with a 720p, 720i, 1080p
or 1080i resolution, or better)public void setHd(boolean hd)
public TypedString getEmbed()
TypedString block of embed HTML markup that corresponds to the item’s media
content, or null if not part of the feedpublic void setEmbed(TypedString embed)
public void addMetamark(Metamark metamark)
public String getProvider()
public void setProvider(String provider)
public Visibility getVisibility()
public void setVisibility(Visibility visibility)
public String getRights()
public void setRights(String rights)
Copyright © 2018. All rights reserved.