com.google.gdata.data.media.mediarss
Class MediaRestriction

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.media.mediarss.MediaRestriction
All Implemented Interfaces:
Extension

public class MediaRestriction
extends AbstractExtension

<media:category>. See description on http://search.yahoo.com/mrss.


Nested Class Summary
static class MediaRestriction.Relationship
          Values for the relationship attribute.
static class MediaRestriction.Type
          Values for the type attribute.
 
Constructor Summary
MediaRestriction()
           
 
Method Summary
 java.lang.String getContent()
           
 java.util.List<java.lang.String> getContentAsCountryCodeList()
          Gets the content as a space-separated list of country codes.
 MediaRestriction.Relationship getRelationship()
           
 MediaRestriction.Type getType()
           
 void setContent(java.lang.String content)
           
 void setContentAsCountryCodeList(java.util.List<java.lang.String> codes)
          Sets the content as a space-separated list of country codes.
 void setRelationship(MediaRestriction.Relationship relationship)
           
 void setType(MediaRestriction.Type type)
           
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaRestriction

public MediaRestriction()
Method Detail

getRelationship

public MediaRestriction.Relationship getRelationship()

setRelationship

public void setRelationship(MediaRestriction.Relationship relationship)

getType

public MediaRestriction.Type getType()

setType

public void setType(MediaRestriction.Type type)

setContentAsCountryCodeList

public void setContentAsCountryCodeList(java.util.List<java.lang.String> codes)
Sets the content as a space-separated list of country codes.

Parameters:
codes - a list of country codes

getContentAsCountryCodeList

public java.util.List<java.lang.String> getContentAsCountryCodeList()
Gets the content as a space-separated list of country codes. Check the type before calling this method.

Returns:
a list of strings

getContent

public java.lang.String getContent()

setContent

public void setContent(java.lang.String content)