public abstract class

AbstractTextElement

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.media.mediarss.AbstractTextElement
Known Direct Subclasses

Class Overview

A media element with a 'type' attribute and text content.

Summary

Fields
private TextConstruct content
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
AbstractTextElement()
Public Methods
TextConstruct getContent()
final XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
String getPlainTextContent()
boolean isEmpty()
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void setHtmlContent(String html)
void setPlainTextContent(String text)
Protected Methods
void consumeAttributes(AttributeHelper attrsHelper)
The default implementation does nothing, subclasses can override to handle attributes.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private TextConstruct content

Public Constructors

public AbstractTextElement ()

Public Methods

public TextConstruct getContent ()

public final XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public String getPlainTextContent ()

public boolean isEmpty ()

public void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

public void setHtmlContent (String html)

Parameters
html

public void setPlainTextContent (String text)

Parameters
text

Protected Methods

protected void consumeAttributes (AttributeHelper attrsHelper)

The default implementation does nothing, subclasses can override to handle attributes.

Parameters
attrsHelper Attribute helper
Throws
ParseException from subclasses.