public class Text extends Common
atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv xhtmlDiv = element xhtml:div { (attribute * { text } | text | anyXHTML)* }
Constructor and Description |
---|
Text()
Bean constructor.
|
Text(String type)
Normal content.
|
Modifier and Type | Method and Description |
---|---|
Text |
base(Object base)
Sets the URI base of this object.
|
String |
getText()
Returns the content of this content.
|
String |
getType()
Returns the content type of this content.
|
Text |
lang(String lang)
Sets the language of this object.
|
Text |
text(String text)
Sets the content of this content.
|
Text |
type(String type)
Sets the content type of this content.
|
public Text()
@Xml(format=ATTR) public String getType()
@BeanProperty(value="type") public Text type(String type)
Must be one of the following:
type
- The content type of this content.@Xml(format=XMLTEXT) public String getText()
@BeanProperty(value="text") public Text text(String text)
text
- The content of this content.public Text base(Object base)
Common
The value can be of any of the following types: URI
, URL
, String
.
Strings must be valid URIs.
URIs defined by UriResolver
can be used for values.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.