|
|||||||||
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 |
java.lang.String |
getValue()
Return the text value |
Div |
getValueElement()
Return the text value element |
java.lang.String |
getWrappedValue()
Return the wrapped value |
void |
setTextType(Text.Type type)
Set the Text.Type |
void |
setValue(java.lang.String value)
Set the text value |
void |
setValueElement(Div value)
Set the text value element |
void |
setWrappedValue(java.lang.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, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Method Detail |
---|
Text.Type getTextType()
void setTextType(Text.Type type)
type
- The Text.TypeDiv getValueElement()
void setValueElement(Div value)
value
- The xhtml:divjava.lang.String getValue()
void setValue(java.lang.String value)
value
- The text valuejava.lang.String getWrappedValue()
void setWrappedValue(java.lang.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 |