Package org.apache.abdera.model
Interface Text
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Represents an Atom Text Contruct.
Atom allows three kinds of Text constructs:
- Text, consisting of content that is to be interpreted as plain text with no markup. For instance,
<title type="text"><title></title>is interpreted as literal characer "<" followed by the word "content", followed by the literal character ">". - HTML, consisting of content that is to be interpreted as escaped HTML markup. For instance,
<title type="html"><b>title</b></title>is interpreted as the word "content" surrounded by the HTML<b>and</b>tags. - XHTML, consisting of well-formed XHTML content wrapped in an XHTML div element. For instance,
<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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDeprecated.Text Constructs can be either Text, HTML or XHTML -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the Text.TypegetValue()Deprecated.Return the text valueDeprecated.Return the text value elementDeprecated.Return the wrapped valuesetTextType(Text.Type type) Deprecated.Set the Text.TypeDeprecated.Set the text valuesetValueElement(Div value) Deprecated.Set the text value elementsetWrappedValue(String wrappedValue) Deprecated.Set the wrapped valueMethods inherited from interface org.apache.abdera.model.Base
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToMethods inherited from interface org.apache.abdera.model.Element
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, setTextMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getTextType
Text.Type getTextType()Deprecated.Return the Text.Type- Returns:
- The Text.Type
-
setTextType
Deprecated.Set the Text.Type- Parameters:
type- The Text.Type
-
getValueElement
Div getValueElement()Deprecated.Return the text value element- Returns:
- A xhtml:div
-
setValueElement
Deprecated.Set the text value element- Parameters:
value- The xhtml:div
-
getValue
String getValue()Deprecated.Return the text value- Returns:
- The text value
-
setValue
Deprecated.Set the text value- Parameters:
value- The text value
-
getWrappedValue
String getWrappedValue()Deprecated.Return the wrapped value- Returns:
- The text value wrapped in a xhtml:div
-
setWrappedValue
Deprecated.Set the wrapped value- Parameters:
wrappedValue- The text value wrapped in a xhtml:div
-