org.apache.abdera.model
Interface Text
- All Superinterfaces:
- Base, java.lang.Cloneable, Element, java.io.Serializable
public interface Text
- extends Element
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
Methods inherited from interface org.apache.abdera.model.Element |
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText |
getTextType
Text.Type getTextType()
setTextType
void setTextType(Text.Type type)
getValueElement
Div getValueElement()
setValueElement
void setValueElement(Div value)
getValue
java.lang.String getValue()
setValue
void setValue(java.lang.String value)
getWrappedValue
java.lang.String getWrappedValue()
setWrappedValue
void setWrappedValue(java.lang.String wrappedValue)