public class MediaKeywords extends AbstractExtension
<media:keywords>
.
See description on
http://search.yahoo.com/mrss.AbstractExtension.AttributesHandler
localName, namespace
Constructor and Description |
---|
MediaKeywords() |
Modifier and Type | Method and Description |
---|---|
void |
addKeyword(java.lang.String keyword) |
void |
addKeywords(java.util.Collection<java.lang.String> keywords) |
void |
clearKeywords() |
protected void |
consumeAttributes(AttributeHelper attrsHelper)
Consumes attributes from the attribute helper.
|
static ExtensionDescription |
getDefaultDescription()
Describes the tag to an
ExtensionProfile . |
java.util.List<java.lang.String> |
getKeywords() |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
public static ExtensionDescription getDefaultDescription()
ExtensionProfile
.public java.util.List<java.lang.String> getKeywords()
public void addKeyword(java.lang.String keyword)
public void addKeywords(java.util.Collection<java.lang.String> keywords)
public void clearKeywords()
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.putAttributes
in class AbstractExtension
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.consumeAttributes
in class AbstractExtension
attrsHelper
- attribute helperParseException
- any parsing exception