|
|||||||||
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.XhtmlTextConstruct
public class XhtmlTextConstruct
XHTML variant of TextConstruct
.
Nested Class Summary | |
---|---|
class |
XhtmlTextConstruct.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 XmlBlob |
xhtml
XHTML contents. |
Fields inherited from class com.google.gdata.data.TextConstruct |
---|
lang |
Constructor Summary | |
---|---|
XhtmlTextConstruct()
Class constructor. |
|
XhtmlTextConstruct(XmlBlob xhtml)
Class constructor specifying the XHTML content for this text construct to contain. |
|
XhtmlTextConstruct(XmlBlob xhtml,
java.lang.String lang)
Class constructor specifying the XHTML content for this text construct to contain, plus the human language that the text is written in. |
Method Summary | |
---|---|
void |
generateAtom(XmlWriter w,
java.lang.String elementName)
Generates XML in the Atom format. |
void |
generateRss(XmlWriter w,
java.lang.String elementName,
TextConstruct.RssFormat rssFormat)
Generates XML in the RSS format. |
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). |
XmlBlob |
getXhtml()
|
boolean |
isEmpty()
Returns true if this text construct has no contents. |
void |
setXhtml(XmlBlob v)
Specifies the XHTML 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 XmlBlob xhtml
Constructor Detail |
---|
public XhtmlTextConstruct()
public XhtmlTextConstruct(XmlBlob xhtml)
public XhtmlTextConstruct(XmlBlob xhtml, java.lang.String lang)
Method Detail |
---|
public int getType()
TextConstruct
getType
in interface ITextConstruct
getType
in class TextConstruct
public boolean isEmpty()
TextConstruct
true
if this text construct has no contents.
isEmpty
in class TextConstruct
true
if this text construct has no contentspublic XmlBlob getXhtml()
public void setXhtml(XmlBlob v)
public java.lang.String getPlainText()
TextConstruct
getPlainText
in interface ITextConstruct
getPlainText
in class TextConstruct
null
if there is no text content available.public void generateAtom(XmlWriter w, java.lang.String elementName) throws java.io.IOException
generateAtom
in class TextConstruct
w
- output writerelementName
- Atom element name
java.io.IOException
public void generateRss(XmlWriter w, java.lang.String elementName, TextConstruct.RssFormat rssFormat) throws java.io.IOException
generateRss
in class TextConstruct
w
- 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 |