Class Text
- Direct Known Subclasses:
- Content
Text constructs are used throughout Atom for elements that contain human-readable text such as titles, summaries, rights statements, and subtitles. They support three content types:
- "text" - Plain text with no markup (default)
- "html" - HTML markup, entity-escaped
- "xhtml" - Well-formed XHTML in a div container
 Text constructs are the base class for Content and are used directly for:
 
- atom:title - Entry and feed titles
- atom:subtitle - Feed subtitles
- atom:summary - Entry summaries
- atom:rights - Copyright and rights statements
Schema
atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv xhtmlDiv = element xhtml:div { (attribute * { text } | text | anyXHTML)* }
Examples:
   
Specification:
 Represents an 
See Also:
- 
Constructor Details- 
TextNormal content.- Parameters:
- type- The content type of this content.
 
- 
Textpublic Text()Bean constructor.
 
- 
- 
Method Details- 
getTypeBean property getter:type .The content type of this content. - Returns:
- The property value, or null if it is not set.
 
- 
setTypeBean property setter:type .The content type of this content. Must be one of the following: - "text" 
- "html" 
- "xhtml" 
- null (defaults to- "text" )
 - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getTextBean property getter:text .The content of this content. - Returns:
- The property value, or null if it is not set.
 
- 
setTextBean property setter:text .The content of this content. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setBaseDescription copied from class:Common
- 
setLangDescription copied from class:CommonBean property setter:lang .Sets the natural language of the element's content (xml:lang attribute). Example:Text title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );
 
-