public interface Text extends Element
Represents an Atom Text Contruct.
Atom allows three kinds of Text constructs:
<title type="text"><title></title>
is interpreted as literal characer "<" followed by the word "content",
followed by the literal character ">".<title type="html"><b>title</b></title>
is interpreted as the word "content" surrounded by the HTML <b>
and </b>
tags.<title type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><b>Title</b></div></title>
.Per RFC4287:
A Text construct contains human-readable text, usually in small quantities. The content of Text constructs is Language-Sensitive. atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct
Modifier and Type | Interface and Description |
---|---|
static class |
Text.Type
Text Constructs can be either Text, HTML or XHTML
|
Modifier and Type | Method and Description |
---|---|
Text.Type |
getTextType()
Return the Text.Type
|
java.lang.String |
getValue()
Return the text value
|
Div |
getValueElement()
Return the text value element
|
java.lang.String |
getWrappedValue()
Return the wrapped value
|
Text |
setTextType(Text.Type type)
Set the Text.Type
|
Text |
setValue(java.lang.String value)
Set the text value
|
Text |
setValueElement(Div value)
Set the text value element
|
Text |
setWrappedValue(java.lang.String wrappedValue)
Set the wrapped value
|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText
Text.Type getTextType()
Div getValueElement()
Text setValueElement(Div value)
value
- The xhtml:divjava.lang.String getValue()
Text setValue(java.lang.String value)
value
- The text valuejava.lang.String getWrappedValue()
Text setWrappedValue(java.lang.String wrappedValue)
wrappedValue
- The text value wrapped in a xhtml:divCopyright © 2010 - 2020 Adobe. All Rights Reserved