public class

TextContent

extends Content
implements ITextContent
java.lang.Object
   ↳ com.google.gdata.data.Content
     ↳ com.google.gdata.data.TextContent

Class Overview

Variant of Content for entries containing text.

Summary

Fields
protected TextConstruct content Content.
Public Constructors
TextContent()
Class constructor.
TextContent(TextConstruct content)
Class constructor specifying the content for this element to contain.
Public Methods
void generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the Atom format.
void generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
TextConstruct getContent()
Returns the ITextConstruct that contains the text content.
String getLang()
Returns the human language that this content is written in.
int getType()
Returns this content's type.
void setContent(TextConstruct v)
Specifies the text content.
[Expand]
Inherited Methods
From class com.google.gdata.data.Content
From class java.lang.Object
From interface com.google.gdata.data.IContent
From interface com.google.gdata.data.ITextContent

Fields

protected TextConstruct content

Content.

Public Constructors

public TextContent ()

Class constructor.

public TextContent (TextConstruct content)

Class constructor specifying the content for this element to contain.

Parameters
content

Public Methods

public void generateAtom (XmlWriter w, ExtensionProfile extProfile)

Generates XML in the Atom format.

Parameters
w Output writer
extProfile Extension Profile for nested extensions
Throws
IOException

public void generateRss (XmlWriter w, ExtensionProfile extProfile)

Generates XML in the RSS format.

Parameters
w Output writer
extProfile Extension Profile for nested extensions
Throws
IOException

public TextConstruct getContent ()

Returns the ITextConstruct that contains the text content.

Returns
  • the text content

public String getLang ()

Returns the human language that this content is written in.

Returns
  • the human language that this text is written in

public int getType ()

Returns this content's type. See IContent.Type for the set of expected values.

Returns
  • the type (TEXT) of this content

public void setContent (TextConstruct v)

Specifies the text content.

Parameters
v