| java.lang.Object | |
| ↳ | com.google.gdata.data.TextConstruct |
Known Direct Subclasses
|
Abstract base class for text construct type.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TextConstruct.ChildHandlerInfo | Return type for getChildHandler(Attributes);
contains an element handler and a text construct. |
||||||||||
| TextConstruct.RssFormat | Enumerates the kinds of restrictions on what HTML tags are allowed. | ||||||||||
| TextConstruct.Type | Defines the possible text construct types: TEXT, HTML, and XHTML. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| lang | Language. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a text construct.
| |||||||||||
Generates XML in the Atom format.
| |||||||||||
Generates XML in the RSS format.
| |||||||||||
Parses XML in the Atom format.
| |||||||||||
Returns a plain-text representation of this text construct.
| |||||||||||
Returns this text construct's type (text, HTML, or XHTML).
| |||||||||||
Construct a new html text content with the given html.
| |||||||||||
Returns
true if this text construct has no contents. | |||||||||||
Construct a new plain text content with the given text.
| |||||||||||
Specifies the human language that this text construct is written in.
| |||||||||||
Construct a new Xhtml text content from the given div.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.ITextConstruct
| |||||||||||
Language. Derived from the current state of xml:lang.
Creates a text construct. This method is convenient for some service implementations. Note that XHTML is treated somewhat differently from text and HTML.
| type | The type of the new text construct (TEXT, HTML, or XHTML) |
|---|---|
| textOrHtml | The contents to put in this text construct, if the type is
TEXT or HTML.
If type is XHTML, set this parameter to null. |
| xhtml | The contents to put in this text construct, if the type is
XHTML.
If type is TEXT or HTML, set this parameter to null. |
TextConstruct, or null if invalid type.
Generates XML in the Atom format.
| w | Output writer |
|---|---|
| elementName | Atom element name |
| IOException |
|---|
Generates XML in the RSS format.
| w | Output writer |
|---|---|
| elementName | RSS element name |
| rssFormat | The restrictions on what HTML tags are allowed |
| IOException |
|---|
Parses XML in the Atom format.
| attrs | XML attributes of the root TextConstruct node. Used to determine the type of this node. |
|---|
| IOException | |
|---|---|
| ParseException |
Returns a plain-text representation of this text construct.
Returns this text construct's type (text, HTML, or XHTML).
Construct a new html text content with the given html.
| html |
|---|
Returns true if this text construct has no contents.
Construct a new plain text content with the given text.
| text |
|---|
Specifies the human language that this text construct is written in.
| v |
|---|
Construct a new Xhtml text content from the given div.
| div |
|---|