public class MediaRestriction extends AbstractExtension
<media:category>
.
See description on
http://search.yahoo.com/mrss.Modifier and Type | Class and Description |
---|---|
static class |
MediaRestriction.Relationship
Values for the relationship attribute.
|
static class |
MediaRestriction.Type
Values for the type attribute.
|
Constructor and Description |
---|
MediaRestriction() |
Modifier and Type | Method and Description |
---|---|
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) |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public MediaRestriction.Relationship getRelationship()
public void setRelationship(MediaRestriction.Relationship relationship)
public MediaRestriction.Type getType()
public void setType(MediaRestriction.Type type)
public void setContentAsCountryCodeList(java.util.List<java.lang.String> codes)
codes
- a list of country codespublic java.util.List<java.lang.String> getContentAsCountryCodeList()
public java.lang.String getContent()
public void setContent(java.lang.String content)