public interface

MediaData

implements Extensible
com.google.gdata.data.photos.MediaData
Known Indirect Subclasses

Class Overview

An interface for anything that supports mediarss content to implement, provides helpful get and set methods for getting and setting mediarss elements. This takes some of the pain out of sticking data into the media group nested element. This interface is currently supported by the album and photo data interfaces.

Summary

Public Methods
abstract List<MediaCategory> getMediaCategories()
Retrieve the list of media:category elements inside the media:group on this element.
abstract List<MediaContent> getMediaContents()
Retrieve the list of media:content elements inside the media:group on this element.
abstract List<MediaCredit> getMediaCredits()
Retrieve the list of media:credit elements inside the media:group on this element.
abstract MediaGroup getMediaGroup()
Retrieve the media:group element on this element.
abstract MediaKeywords getMediaKeywords()
Retrieve the list of media:keywords elements inside the media:group on this element.
abstract List<MediaThumbnail> getMediaThumbnails()
Retrieve the list of media:thumbnail elements inside the media:group on this element.
abstract void setKeywords(MediaKeywords keywords)
Set the media keywords on this element to the given keywords.
[Expand]
Inherited Methods
From interface com.google.gdata.data.photos.Extensible

Public Methods

public abstract List<MediaCategory> getMediaCategories ()

Retrieve the list of media:category elements inside the media:group on this element. If either the media:group or media:category elements are missing then an empty list will be returned.

Returns
  • a list of media:category elements found on the element.

public abstract List<MediaContent> getMediaContents ()

Retrieve the list of media:content elements inside the media:group on this element. If either the media:group or media:content elements are missing then an empty list will be returned.

Returns
  • a list of media:content elements found on the element.

public abstract List<MediaCredit> getMediaCredits ()

Retrieve the list of media:credit elements inside the media:group on this element. If either the media:group or media:credit elements are missing then an empty list will be returned.

Returns
  • a list of media:credit elements found on this element.

public abstract MediaGroup getMediaGroup ()

Retrieve the media:group element on this element. This will return null if there was no media:group element set.

Returns
  • the media:group element on the element.

public abstract MediaKeywords getMediaKeywords ()

Retrieve the list of media:keywords elements inside the media:group on this element. If either the media:group or media:keywords elements are missing then null will be returned.

Returns
  • the media:keywords elements found on the element, or null.

public abstract List<MediaThumbnail> getMediaThumbnails ()

Retrieve the list of media:thumbnail elements inside the media:group on this element. If either the media:group or media:thumbnail elements are missing then an empty list will be returned.

Returns
  • a list of media:thumbnail elements found on the element.

public abstract void setKeywords (MediaKeywords keywords)

Set the media keywords on this element to the given keywords. Will create the media:group element as needed.

Parameters
keywords