public class MediaCategory extends AbstractExtension
<media:category>.
See description on
http://search.yahoo.com/mrss.AbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SCHEME
Default scheme as defined by the specification.
|
localName, namespace| Constructor and Description |
|---|
MediaCategory()
Creates an empty category tag.
|
MediaCategory(java.lang.String scheme,
java.lang.String content)
Creates an initializes a category tag.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper attrsHelper)
Consumes attributes from the attribute helper.
|
java.lang.String |
getContent() |
java.lang.String |
getLabel() |
java.lang.String |
getScheme() |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setContent(java.lang.String content) |
void |
setLabel(java.lang.String label) |
void |
setScheme(java.lang.String scheme) |
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic static final java.lang.String DEFAULT_SCHEME
public MediaCategory()
public MediaCategory(java.lang.String scheme,
java.lang.String content)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getScheme()
public void setScheme(java.lang.String scheme)
protected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.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
AbstractExtensionAttributeHelper.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)