|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.media.mediarss.MediaGroup
com.google.gdata.data.youtube.YouTubeMediaGroup
public class YouTubeMediaGroup
Subset of <media:group>.
See description on
http://search.yahoo.com/mrss.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
YouTubeMediaGroup()
|
|
| Method Summary | |
|---|---|
void |
addContent(MediaContent content)
Adds a new MediaContent. |
void |
addContent(YouTubeMediaContent content)
Adds a media:content tag. |
void |
addCredit(MediaCredit credit)
Adds a new MediaCredit. |
void |
addCredit(YouTubeMediaCredit credit)
Adds a media:credit tag. |
void |
addRating(MediaRating rating)
Adds a new MediaRating. |
void |
addRating(YouTubeMediaRating rating)
Adds a media:rating tag. |
void |
clearContents()
Clears the list of media:content tags. |
void |
clearCredits()
Clears the list of media:credit tags. |
void |
clearRatings()
Clears the list of media:rating tags. |
void |
declareExtensions(ExtensionProfile extProfile)
Declare extensions available in media:group on youtube feeds. |
YtAspectRatio |
getAspectRatio()
|
java.util.List<MediaContent> |
getContents()
Gets a read-only list of MediaContent. |
java.util.List<MediaCredit> |
getCredits()
Gets a read-only list of MediaCredit. |
java.lang.Long |
getDuration()
Gets the duration, in seconds, of the youtube video. |
java.util.List<MediaRating> |
getRatings()
Gets a read-only list of MediaRating. |
DateTime |
getUploaded()
Returns the time the video was uploaded at. |
java.lang.String |
getUploader()
Gets the YouTube user who uploaded the video. |
YouTubeMediaCredit.Type |
getUploaderType()
Checks whether the uploader is a partner. |
java.lang.String |
getVideoId()
Gets the YouTube ID of the video. |
MediaCategory |
getYouTubeCategory()
A YouTube media group can have only one YouTube category defined by this scheme: YouTubeNamespace.CATEGORY_SCHEME and this method is a
helper for retrieving it. |
java.util.List<YouTubeMediaContent> |
getYouTubeContents()
Gets a modifiable list of YouTubeMediaContent. |
java.util.List<YouTubeMediaCredit> |
getYouTubeCredits()
Gets a modifiable list of YouTubeMediaCredit. |
java.util.List<YouTubeMediaRating> |
getYouTubeRatings()
Gets a modifiable list of YouTubeMediaRating. |
boolean |
isPrivate()
Checks the yt:private flag. |
void |
setAspectRatio(YtAspectRatio aspectRatio)
|
void |
setDuration(java.lang.Long seconds)
Sets the duration, in seconds, of the youtube video. |
void |
setPrivate(boolean makePrivate)
Sets the yt:private flag. |
void |
setUploaded(DateTime dateTime)
Sets or unsets the time the video was uploaded at. |
void |
setUploader(java.lang.String uploader)
Sets the YouTube user who uploaded the video. |
void |
setVideoId(java.lang.String videoId)
Sets the YouTube video ID of the video. |
void |
setYouTubeCategory(java.lang.String name)
Sets or changes the previously set YouTube category. |
| Methods inherited from class com.google.gdata.data.media.mediarss.MediaGroup |
|---|
addCategory, addRestriction, addText, addThumbnail, clearCategories, clearRestrictions, clearTexts, clearThumbnails, getCategories, getCategoriesWithScheme, getCopyright, getDefaultDescription, getDescription, getHash, getKeywords, getPlayer, getRestrictions, getTexts, getThumbnails, getTitle, setCopyright, setDescription, setHash, setKeywords, setPlayer, setTitle |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
consumeAttributes, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gdata.data.Extension |
|---|
generate, getHandler |
| Constructor Detail |
|---|
public YouTubeMediaGroup()
| Method Detail |
|---|
public java.lang.String getVideoId()
public void setVideoId(java.lang.String videoId)
public java.lang.Long getDuration()
public void setDuration(java.lang.Long seconds)
public DateTime getUploaded()
public void setUploaded(DateTime dateTime)
public void setUploader(java.lang.String uploader)
uploader - YouTube user name or nullpublic java.lang.String getUploader()
nullpublic YouTubeMediaCredit.Type getUploaderType()
public java.util.List<YouTubeMediaContent> getYouTubeContents()
YouTubeMediaContent.
MediaContent.public void addContent(MediaContent content)
MediaContent.
YouTube entries can only contain YouTubeMediaContent and this
method checks that at runtime. Please use
addContent(YouTubeMediaContent) instead.
addContent in class MediaGroupcontent -
java.lang.IllegalArgumentException - if content is not a
YouTubeMediaContentpublic java.util.List<MediaContent> getContents()
MediaContent.
YouTube entries only contain YouTubeMediaContent. Please use
getYouTubeContents() instead to make sure you have access to
a modifiable lis.
This collection has been made read-only to make sure only
YouTubeMediaContent are ever added. Please use
getYouTubeContents()/addContent(YouTubeMediaContent) to
modify the list of media:content tags..
getContents in class MediaGroupMediaContentpublic void clearContents()
media:content tags.
clearContents in class MediaGrouppublic void addContent(YouTubeMediaContent content)
media:content tag.
content - public java.util.List<YouTubeMediaRating> getYouTubeRatings()
YouTubeMediaRating.
MediaRating.public void addRating(MediaRating rating)
MediaRating.
YouTube entries can only contain YouTubeMediaRating and this
method checks that at runtime. Please use
addRating(YouTubeMediaRating) instead.
addRating in class MediaGrouprating -
java.lang.IllegalArgumentException - if rating is not a
YouTubeMediaRatingpublic java.util.List<MediaRating> getRatings()
MediaRating.
YouTube entries only contain YouTubeMediaRating. Please use
getYouTubeRatings() instead to make sure you have access to
a modifiable lis.
This collection has been made read-only to make sure only
YouTubeMediaRating are ever added. Please use
getYouTubeRatings()/addRating(YouTubeMediaRating) to
modify the list of media:rating tags..
getRatings in class MediaGroupMediaRatingpublic void clearRatings()
media:rating tags.
clearRatings in class MediaGrouppublic void addRating(YouTubeMediaRating rating)
media:rating tag.
rating - public java.util.List<YouTubeMediaCredit> getYouTubeCredits()
YouTubeMediaCredit.
MediaCredit.public void addCredit(MediaCredit credit)
MediaCredit.
YouTube entries can only contain YouTubeMediaCredit and this
method checks that at runtime. Please use
addCredit(YouTubeMediaCredit) instead.
addCredit in class MediaGroupcredit -
java.lang.IllegalArgumentException - if credit is not a
YouTubeMediaCreditpublic java.util.List<MediaCredit> getCredits()
MediaCredit.
YouTube entries only contain YouTubeMediaCredit. Please use
getYouTubeCredits() instead to make sure you have access to
a modifiable lis.
This collection has been made read-only to make sure only
YouTubeMediaCredit are ever added. Please use
getYouTubeCredits()/addCredit(YouTubeMediaCredit) to
modify the list of media:credit tags..
getCredits in class MediaGroupMediaCreditpublic void clearCredits()
media:credit tags.
clearCredits in class MediaGrouppublic void addCredit(YouTubeMediaCredit credit)
media:credit tag.
credit - public void setAspectRatio(YtAspectRatio aspectRatio)
public YtAspectRatio getAspectRatio()
public boolean isPrivate()
public void setPrivate(boolean makePrivate)
public MediaCategory getYouTubeCategory()
YouTubeNamespace.CATEGORY_SCHEME and this method is a
helper for retrieving it. See also: MediaGroup.getCategories().
If two or more such categories are specified it cannot be determined which is the right one so this method will return null.
public void setYouTubeCategory(java.lang.String name)
name - the new category name to set.public void declareExtensions(ExtensionProfile extProfile)
declareExtensions in class MediaGroupextProfile - the ExtensionProfile to initialize.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||