com.google.gdata.data.media.mediarss
Class MediaRestriction
java.lang.Object
com.google.gdata.data.AbstractExtension
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaRestriction
public MediaRestriction()
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)