org.apache.shindig.social.opensocial.model
Interface MediaLink

All Superinterfaces:
ExtendableBean, java.util.Map<java.lang.String,java.lang.Object>
All Known Implementing Classes:
MediaLinkImpl

public interface MediaLink
extends ExtendableBean

MediaLink interface.


Nested Class Summary
static class MediaLink.Field
          Fields that represent the JSON elements.
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 java.lang.Integer getDuration()
          Returns the duration of this media.
 java.lang.Integer getHeight()
          Sets the height of this media.
 ExtendableBean getOpenSocial()
          getOpenSocial
 java.lang.String getUrl()
          Returns the target URL of this MediaLink.
 java.lang.Integer getWidth()
          Returns the width of this media.
 void setDuration(java.lang.Integer duration)
          Sets the duration of this media.
 void setHeight(java.lang.Integer height)
          Sets the height of this media.
 void setOpenSocial(ExtendableBean opensocial)
          setOpenSocial
 void setUrl(java.lang.String url)
          Sets the target URL for this MediaLink.
 void setWidth(java.lang.Integer width)
          Sets the width of this media.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getDuration

java.lang.Integer getDuration()
Returns the duration of this media.

Returns:
Integer is the target's duration

setDuration

void setDuration(java.lang.Integer duration)
Sets the duration of this media.

Parameters:
duration - is the target's duration

getHeight

java.lang.Integer getHeight()
Sets the height of this media.

Returns:
Integer the target's height

setHeight

void setHeight(java.lang.Integer height)
Sets the height of this media.

Parameters:
height - is the target's height

getUrl

java.lang.String getUrl()
Returns the target URL of this MediaLink.

Returns:
a target

setUrl

void setUrl(java.lang.String url)
Sets the target URL for this MediaLink.

Parameters:
target - a target link

getWidth

java.lang.Integer getWidth()

Returns the width of this media.

Returns:
Integer the target's width

setWidth

void setWidth(java.lang.Integer width)
Sets the width of this media.

Parameters:
width - is the target's width

getOpenSocial

ExtendableBean getOpenSocial()

getOpenSocial

Returns:
a ExtendableBean object

setOpenSocial

void setOpenSocial(ExtendableBean opensocial)

setOpenSocial



Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.