|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.TextConstruct
com.google.gdata.data.HtmlTextConstruct
public class HtmlTextConstruct
HTML variant of TextConstruct.
| Nested Class Summary | |
|---|---|
class |
HtmlTextConstruct.AtomHandler
Parses XML in the Atom format. |
| Nested classes/interfaces inherited from class com.google.gdata.data.TextConstruct |
|---|
TextConstruct.ChildHandlerInfo, TextConstruct.RssFormat, TextConstruct.Type |
| Field Summary | |
|---|---|
protected java.lang.String |
html
HTML contents. |
| Fields inherited from class com.google.gdata.data.TextConstruct |
|---|
lang |
| Constructor Summary | |
|---|---|
HtmlTextConstruct()
Class constructor. |
|
HtmlTextConstruct(java.lang.String html)
Class constructor specifying the HTML content for this text construct to contain. |
|
HtmlTextConstruct(java.lang.String html,
java.lang.String lang)
Class constructor specifying the HTML content for this text construct to contain, plus the human language that the text is written in. |
|
| Method Summary | |
|---|---|
void |
generateAtom(com.google.gdata.util.common.xml.XmlWriter w,
java.lang.String elementName)
Generates XML in the Atom format. |
void |
generateRss(com.google.gdata.util.common.xml.XmlWriter w,
java.lang.String elementName,
TextConstruct.RssFormat rssFormat)
Generates XML in the RSS format. |
java.lang.String |
getHtml()
|
java.lang.String |
getPlainText()
Returns a plain-text representation of this text construct. |
int |
getType()
Returns this text construct's type (text, HTML, or XHTML). |
boolean |
isEmpty()
Returns true if this text construct has no contents. |
void |
setHtml(java.lang.String v)
Specifies the HTML contents of this text construct. |
| Methods inherited from class com.google.gdata.data.TextConstruct |
|---|
create, getChildHandler, getLang, html, plainText, setLang, xhtml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String html
| Constructor Detail |
|---|
public HtmlTextConstruct()
public HtmlTextConstruct(java.lang.String html)
public HtmlTextConstruct(java.lang.String html,
java.lang.String lang)
| Method Detail |
|---|
public int getType()
TextConstruct
getType in interface ITextConstructgetType in class TextConstructpublic boolean isEmpty()
TextConstructtrue if this text construct has no contents.
isEmpty in class TextConstructtrue if this text construct has no contentspublic java.lang.String getHtml()
public void setHtml(java.lang.String v)
public java.lang.String getPlainText()
TextConstruct
getPlainText in interface ITextConstructgetPlainText in class TextConstruct
public void generateAtom(com.google.gdata.util.common.xml.XmlWriter w,
java.lang.String elementName)
throws java.io.IOException
generateAtom in class TextConstructw - output writerelementName - Atom element name
java.io.IOException
public void generateRss(com.google.gdata.util.common.xml.XmlWriter w,
java.lang.String elementName,
TextConstruct.RssFormat rssFormat)
throws java.io.IOException
generateRss in class TextConstructw - output writerelementName - RSS element namerssFormat - the restrictions on what HTML tags are allowed
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||