Package org.apache.abdera.model
Interface Text
-
@Deprecated(since="2021-07-29") public interface Text extends Element
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
- Text, consisting of content that is to be interpreted as plain text with no markup. For instance,
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Text.Type
Deprecated.Text Constructs can be either Text, HTML or XHTML
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Text.Type
getTextType()
Deprecated.Return the Text.Typejava.lang.String
getValue()
Deprecated.Return the text valueDiv
getValueElement()
Deprecated.Return the text value elementjava.lang.String
getWrappedValue()
Deprecated.Return the wrapped valueText
setTextType(Text.Type type)
Deprecated.Set the Text.TypeText
setValue(java.lang.String value)
Deprecated.Set the text valueText
setValueElement(Div value)
Deprecated.Set the text value elementText
setWrappedValue(java.lang.String wrappedValue)
Deprecated.Set the wrapped value-
Methods inherited from interface org.apache.abdera.model.Base
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo
-
Methods 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, setText
-
-
-
-
Method Detail
-
getTextType
Text.Type getTextType()
Deprecated.Return the Text.Type- Returns:
- The Text.Type
-
setTextType
Text setTextType(Text.Type type)
Deprecated.Set the Text.Type- Parameters:
type
- The Text.Type
-
getValueElement
Div getValueElement()
Deprecated.Return the text value element- Returns:
- A xhtml:div
-
setValueElement
Text setValueElement(Div value)
Deprecated.Set the text value element- Parameters:
value
- The xhtml:div
-
getValue
java.lang.String getValue()
Deprecated.Return the text value- Returns:
- The text value
-
setValue
Text setValue(java.lang.String value)
Deprecated.Set the text value- Parameters:
value
- The text value
-
getWrappedValue
java.lang.String getWrappedValue()
Deprecated.Return the wrapped value- Returns:
- The text value wrapped in a xhtml:div
-
setWrappedValue
Text setWrappedValue(java.lang.String wrappedValue)
Deprecated.Set the wrapped value- Parameters:
wrappedValue
- The text value wrapped in a xhtml:div
-
-