public class TextContent extends Content implements ITextContent
Content
for entries containing text.Content.ChildHandlerInfo
IContent.Type
Constructor and Description |
---|
TextContent()
Class constructor.
|
TextContent(TextConstruct content)
Class constructor specifying the content for this element to contain.
|
Modifier and Type | Method and Description |
---|---|
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. |
java.lang.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.
|
getChildHandler
public TextContent()
public TextContent(TextConstruct content)
public int getType()
Content
IContent.Type
for the set of
expected values.public java.lang.String getLang()
Content
public TextConstruct getContent()
ITextContent
ITextConstruct
that contains the text content.getContent
in interface ITextContent
public void setContent(TextConstruct v)
public void generateAtom(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generateAtom
in class Content
w
- output writerextProfile
- Extension Profile for nested extensionsjava.io.IOException
public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generateRss
in class Content
w
- output writerextProfile
- Extension Profile for nested extensionsjava.io.IOException