public class Item extends BaseMedia
| Constructor and Description |
|---|
Item() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(Category category)
Includes the item in a category.
|
void |
addMediaContent(Content mediaContent)
Adds a media content.
|
void |
addMediaGroup(Group mediaGroup)
Adds a media group.
|
String |
getAuthor()
Returns the email address of the author of the item.
|
List<Category> |
getCategories()
Returns a list of one or more item's categories.
|
Channel |
getChannel()
Returns the parent channel, if any.
|
String |
getComments()
Returns an URL of a page for comments relating to the item.
|
String |
getDescription()
Returns the item synopsis.
|
Enclosure |
getEnclosure()
Describes a media object that is attached to the item.
|
GUID |
getGuid()
Returns a string that uniquely identifies the item.
|
URI |
getLink()
Returns the URL of the item.
|
String |
getLinkString()
Returns the URL of the item.
|
List<Content> |
getMediaContents()
Returns the list of media contents.
|
List<Group> |
getMediaGroups()
Returns the list of media groups.
|
Date |
getPubDate()
Indicates when the item was published.
|
String |
getPubDateString()
Indicates when the item was published.
|
Source |
getSource()
Returns the RSS channel that the item came from.
|
String |
getTitle()
Returns the title of the item.
|
void |
setAuthor(String author)
Initializes the email address of the author of the item.
|
void |
setComments(String comments)
Initializes an URL of a page for comments relating to the item.
|
void |
setDescription(String description)
Initializes the item synopsis.
|
void |
setEnclosure(Enclosure enclosure)
Describes a media object that is attached to the item.
|
void |
setGuid(GUID guid)
Initializes a string that uniquely identifies the item.
|
void |
setLink(URI link)
Initializes the URL of the item.
|
void |
setLinkString(String link)
Initializes the URL of the item.
|
void |
setPubDate(Date pubDate)
Indicates when the item was published.
|
void |
setPubDateString(String pubDate)
Indicates when the item was published.
|
void |
setSource(Source source)
Initializes the RSS channel that the item came from.
|
void |
setTitle(String title)
Initializes the title of the item.
|
addMediaCategory, addMediaCredit, addMediaHash, addMediaRating, addMediaRestriction, addMediaText, addMediaThumbnail, getMediaAdult, getMediaCategories, getMediaCopyright, getMediaCredits, getMediaDescription, getMediaHashes, getMediaKeywords, getMediaPlayer, getMediaRatings, getMediaRestrictions, getMediaTexts, getMediaThumbnails, getMediaTitle, isMediaAdult, setMediaAdult, setMediaAdult, setMediaCopyright, setMediaDescription, setMediaKeywords, setMediaPlayer, setMediaTitlepublic String getTitle()
null.setTitle(java.lang.String)public void setTitle(String title)
title - the item's title. May be null.getTitle()public void setLinkString(String link) throws URISyntaxException
link - an URL as a string. Shall not be null.NullPointerException - if link is null.URISyntaxException - if the given string violates RFC 2396, as augmented by the URI deviations.getLinkString(),
setLink(java.net.URI)public String getLinkString()
null.setLinkString(java.lang.String),
getLink()public void setLink(URI link)
link - an URL. May be null.getLink(),
setLinkString(java.lang.String)public URI getLink()
null.setLink(java.net.URI),
getLinkString()public String getDescription()
null.setDescription(java.lang.String)public void setDescription(String description)
description - the item's description. May be null.getDescription()public String getAuthor()
null.setAuthor(java.lang.String)public void setAuthor(String author)
author - the author's email. May be null.getAuthor()public List<Category> getCategories()
null.addCategory(chameleon.rss.Category)public void addCategory(Category category)
category - an item's category. Shall not be null.NullPointerException - if category is null.getCategories()public String getComments()
null.setComments(java.lang.String)public void setComments(String comments)
comments - an URL as a string. May be null.getComments()public Enclosure getEnclosure()
null.setEnclosure(chameleon.rss.Enclosure)public void setEnclosure(Enclosure enclosure)
enclosure - a media descriptor. May be null.getEnclosure()public GUID getGuid()
null.setGuid(chameleon.rss.GUID)public void setGuid(GUID guid)
guid - a GUID. May be null.getGuid()public void setPubDateString(String pubDate)
pubDate - a date as a string. Shall not be null.NullPointerException - if pubDate is null.getPubDateString(),
setPubDate(java.util.Date)public String getPubDateString()
null.setPubDateString(java.lang.String),
getPubDate()public Date getPubDate()
null.setPubDate(java.util.Date),
getPubDateString()public void setPubDate(Date pubDate)
pubDate - a date. May be null.getPubDate(),
setPubDateString(java.lang.String)public Source getSource()
null.setSource(chameleon.rss.Source)public void setSource(Source source)
source - the item's source. May be null.getSource()public void addMediaContent(Content mediaContent)
mediaContent - a media content. Shall not be null.NullPointerException - if mediaContent is null.getMediaContents()public List<Content> getMediaContents()
null.addMediaContent(chameleon.rss.media.Content)public List<Group> getMediaGroups()
null.addMediaGroup(chameleon.rss.media.Group)public void addMediaGroup(Group mediaGroup)
mediaGroup - a media group. Shall not be null.NullPointerException - if mediaGroup is null.getMediaGroups()public Channel getChannel()
null.Copyright © 2008–2017. All rights reserved.