|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Text
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
Nested Class Summary | |
---|---|
static class |
Text.Type
Text Constructs can be either Text, HTML or XHTML |
Method Summary | |
---|---|
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 |
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 |
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 java.lang.Iterable |
---|
iterator |
Method Detail |
---|
Text.Type getTextType()
Text setTextType(Text.Type type)
type
- The Text.TypeDiv getValueElement()
Text setValueElement(Div value)
value
- The xhtml:divString getValue()
Text setValue(String value)
value
- The text valueString getWrappedValue()
Text setWrappedValue(String wrappedValue)
wrappedValue
- The text value wrapped in a xhtml:div
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |