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.
|
AbstractExtension.AttributesHandler
localName, namespace
Constructor and Description |
---|
MediaRestriction() |
Modifier and Type | Method and Description |
---|---|
protected void |
consumeAttributes(AttributeHelper attrsHelper)
Consumes attributes from the attribute helper.
|
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() |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
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, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
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()
protected void putAttributes(AttributeGenerator generator)
AbstractExtension
AbstractExtension.generate(XmlWriter,ExtensionProfile)
. Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.generator
- attribute generatorprotected void consumeAttributes(AttributeHelper attrsHelper) throws ParseException
AbstractExtension
AttributeHelper.consumeContent(boolean)
to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes)
. Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.attrsHelper
- attribute helperParseException
- any parsing exceptionpublic java.lang.String getContent()
public void setContent(java.lang.String content)