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
|
String |
getValue()
Return the text value
|
Div |
getValueElement()
Return the text value element
|
String |
getWrappedValue()
Return the wrapped value
|
Text |
setTextType(Text.Type type)
Set the Text.Type
|
Text |
setValue(String value)
Set the text value
|
Text |
setValueElement(Div value)
Set the text value element
|
Text |
setWrappedValue(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, setTextaddComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToforEach, iterator, spliteratorText.Type getTextType()
Div getValueElement()
Text setValueElement(Div value)
value - The xhtml:divString getValue()
String getWrappedValue()
Copyright © 2010 - 2020 Adobe. All Rights Reserved