org.apache.shindig.social.core.model
Class MediaItemImpl

java.lang.Object
  extended by org.apache.shindig.social.core.model.MediaItemImpl
All Implemented Interfaces:
MediaItem

public class MediaItemImpl
extends Object
implements MediaItem

see opensocial.MediaItem.Field


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.MediaItem
MediaItem.Field, MediaItem.Type
 
Constructor Summary
MediaItemImpl()
           
MediaItemImpl(String mimeType, MediaItem.Type type, String url)
           
 
Method Summary
 String getAlbumId()
          Get the album which the media item belongs to.
 String getCreated()
          Get the creation time
 String getDescription()
          Get the description of the media item
 String getDuration()
          Get the playtime length in seconds of the MediaItem
 String getFileSize()
          Get the MediaItem's file size
 String getId()
          Get the MediaItem's id
 String getLanguage()
          Get the language associated with the media item in ISO 639-3 format
 String getLastUpdated()
          Get the update time associated with the media item
 Address getLocation()
          Get the location corresponding to the media item
 String getMimeType()
          Get the mime type for this Media item.
 String getNumComments()
          Get the number of comments on the media item
 String getNumViews()
          Get the number of views for the media item
 String getNumVotes()
          Get the number of votes received for voting.
 String getRating()
          Get the average rating of the media item on a scale of 0-10
 String getStartTime()
          Get the time when the content is available.
 String getTaggedPeople()
          Get people tagged in the media item.
 String getTags()
          Get tags associated with this media item.
 String getThumbnailUrl()
          Get the thumbnail URL for the media item.
 String getTitle()
          Get the title for this media item
 MediaItem.Type getType()
          Get the Type of this media item, either audio, image or video.
 String getUrl()
          Get a URL for the media item.
 void setAlbumId(String albumId)
          Set the album id which the media item belongs to.
 void setCreated(String created)
          Set the creation time
 void setDescription(String description)
          Set the description of the media item
 void setDuration(String duration)
          Set the playtime length in seconds of the MediaItem
 void setFileSize(String fileSize)
          Set the number of bytes for the MediaItem
 void setId(String id)
          Set the MediaItem's id
 void setLanguage(String language)
          Set the language associated with the media item in ISO 639-3 format
 void setLastUpdated(String lastUpdated)
          Set the update time associated with the media item
 void setLocation(Address location)
          Set the location corresponding to the media item
 void setMimeType(String mimeType)
          Set the mimetype for this Media Item.
 void setNumComments(String numComments)
          Set the number of comments on the media item
 void setNumViews(String numViews)
          Set the number of views for the media item
 void setNumVotes(String numVotes)
          Set the number of votes received for voting.
 void setRating(String rating)
          Set the average rating of the media item on a scale of 0-10
 void setStartTime(String startTime)
          Set the the time when the content is available.
 void setTaggedPeople(String taggedPeople)
          Set people tagged in the media item.
 void setTags(String tags)
          Set tags associated with this media item.
 void setThumbnailUrl(String url)
          Set a thumbnail URL for the media item.
 void setTitle(String title)
          Set the title for this media item
 void setType(MediaItem.Type type)
          Get the Type of this media item, either audio, image or video.
 void setUrl(String url)
          Set a URL for the media item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaItemImpl

public MediaItemImpl()

MediaItemImpl

public MediaItemImpl(String mimeType,
                     MediaItem.Type type,
                     String url)
Method Detail

getMimeType

public String getMimeType()
Description copied from interface: MediaItem
Get the mime type for this Media item.

Specified by:
getMimeType in interface MediaItem
Returns:
the mime type.

setMimeType

public void setMimeType(String mimeType)
Set the mimetype for this Media Item.

Specified by:
setMimeType in interface MediaItem
Parameters:
mimeType - the mimeType

getType

public MediaItem.Type getType()
Description copied from interface: MediaItem
Get the Type of this media item, either audio, image or video.

Specified by:
getType in interface MediaItem
Returns:
the Type of this media item

setType

public void setType(MediaItem.Type type)
Description copied from interface: MediaItem
Get the Type of this media item, either audio, image or video.

Specified by:
setType in interface MediaItem
Parameters:
type - the type of this media item

getUrl

public String getUrl()
Description copied from interface: MediaItem
Get a URL for the media item.

Specified by:
getUrl in interface MediaItem
Returns:
the url of the media item

setUrl

public void setUrl(String url)
Set a URL for the media item.

Specified by:
setUrl in interface MediaItem
Parameters:
url - the media item URL

getThumbnailUrl

public String getThumbnailUrl()
Description copied from interface: MediaItem
Get the thumbnail URL for the media item.

Specified by:
getThumbnailUrl in interface MediaItem
Returns:
the thumbnail url of the MediaItem

setThumbnailUrl

public void setThumbnailUrl(String url)
Set a thumbnail URL for the media item.

Specified by:
setThumbnailUrl in interface MediaItem
Parameters:
url - the thumbnail URL of the MediaItem

getAlbumId

public String getAlbumId()
Description copied from interface: MediaItem
Get the album which the media item belongs to.

Specified by:
getAlbumId in interface MediaItem
Returns:
the album id.

setAlbumId

public void setAlbumId(String albumId)
Set the album id which the media item belongs to.

Specified by:
setAlbumId in interface MediaItem
Parameters:
albumId - the album id

getCreated

public String getCreated()
Description copied from interface: MediaItem
Get the creation time

Specified by:
getCreated in interface MediaItem
Returns:
creation time associated with the media item in UTC.

setCreated

public void setCreated(String created)
Set the creation time

Specified by:
setCreated in interface MediaItem
Parameters:
created - creation time associated with the media item in UTC.

getDescription

public String getDescription()
Description copied from interface: MediaItem
Get the description of the media item

Specified by:
getDescription in interface MediaItem
Returns:
description

setDescription

public void setDescription(String description)
Set the description of the media item

Specified by:
setDescription in interface MediaItem

getDuration

public String getDuration()
Description copied from interface: MediaItem
Get the playtime length in seconds of the MediaItem

Specified by:
getDuration in interface MediaItem
Returns:
playtime

setDuration

public void setDuration(String duration)
Set the playtime length in seconds of the MediaItem

Specified by:
setDuration in interface MediaItem

getFileSize

public String getFileSize()
Description copied from interface: MediaItem
Get the MediaItem's file size

Specified by:
getFileSize in interface MediaItem
Returns:
fileSize

setFileSize

public void setFileSize(String fileSize)
Set the number of bytes for the MediaItem

Specified by:
setFileSize in interface MediaItem

getId

public String getId()
Description copied from interface: MediaItem
Get the MediaItem's id

Specified by:
getId in interface MediaItem
Returns:
id

setId

public void setId(String id)
Set the MediaItem's id

Specified by:
setId in interface MediaItem

getLanguage

public String getLanguage()
Description copied from interface: MediaItem
Get the language associated with the media item in ISO 639-3 format

Specified by:
getLanguage in interface MediaItem
Returns:

setLanguage

public void setLanguage(String language)
Set the language associated with the media item in ISO 639-3 format

Specified by:
setLanguage in interface MediaItem

getLastUpdated

public String getLastUpdated()
Description copied from interface: MediaItem
Get the update time associated with the media item

Specified by:
getLastUpdated in interface MediaItem
Returns:
lastUpdated

setLastUpdated

public void setLastUpdated(String lastUpdated)
Set the update time associated with the media item

Specified by:
setLastUpdated in interface MediaItem

getLocation

public Address getLocation()
Description copied from interface: MediaItem
Get the location corresponding to the media item

Specified by:
getLocation in interface MediaItem
Returns:
location

setLocation

public void setLocation(Address location)
Set the location corresponding to the media item

Specified by:
setLocation in interface MediaItem

getNumComments

public String getNumComments()
Description copied from interface: MediaItem
Get the number of comments on the media item

Specified by:
getNumComments in interface MediaItem
Returns:
numComments

setNumComments

public void setNumComments(String numComments)
Set the number of comments on the media item

Specified by:
setNumComments in interface MediaItem

getNumViews

public String getNumViews()
Description copied from interface: MediaItem
Get the number of views for the media item

Specified by:
getNumViews in interface MediaItem
Returns:
numViews

setNumViews

public void setNumViews(String numViews)
Set the number of views for the media item

Specified by:
setNumViews in interface MediaItem

getNumVotes

public String getNumVotes()
Description copied from interface: MediaItem
Get the number of votes received for voting.

Specified by:
getNumVotes in interface MediaItem
Returns:
numVotes

setNumVotes

public void setNumVotes(String numVotes)
Set the number of votes received for voting.

Specified by:
setNumVotes in interface MediaItem

getRating

public String getRating()
Description copied from interface: MediaItem
Get the average rating of the media item on a scale of 0-10

Specified by:
getRating in interface MediaItem
Returns:
rating

setRating

public void setRating(String rating)
Set the average rating of the media item on a scale of 0-10

Specified by:
setRating in interface MediaItem

getStartTime

public String getStartTime()
Description copied from interface: MediaItem
Get the time when the content is available.

Specified by:
getStartTime in interface MediaItem
Returns:
startTime

setStartTime

public void setStartTime(String startTime)
Set the the time when the content is available.

Specified by:
setStartTime in interface MediaItem

getTaggedPeople

public String getTaggedPeople()
Description copied from interface: MediaItem
Get people tagged in the media item.

Specified by:
getTaggedPeople in interface MediaItem
Returns:
taggedPeople

setTaggedPeople

public void setTaggedPeople(String taggedPeople)
Set people tagged in the media item.

Specified by:
setTaggedPeople in interface MediaItem

getTags

public String getTags()
Description copied from interface: MediaItem
Get tags associated with this media item.

Specified by:
getTags in interface MediaItem
Returns:
tags

setTags

public void setTags(String tags)
Set tags associated with this media item.

Specified by:
setTags in interface MediaItem

getTitle

public String getTitle()
Description copied from interface: MediaItem
Get the title for this media item

Specified by:
getTitle in interface MediaItem
Returns:
title

setTitle

public void setTitle(String title)
Set the title for this media item

Specified by:
setTitle in interface MediaItem


Copyright © 2007-2012. All Rights Reserved.