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:

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
           
 
Method Summary
 Text.Type getTextType()
           
 java.lang.String getValue()
           
 Div getValueElement()
           
 java.lang.String getWrappedValue()
           
 void setTextType(Text.Type type)
           
 void setValue(java.lang.String value)
           
 void setValueElement(Div value)
           
 void setWrappedValue(java.lang.String wrappedValue)
           
 
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
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

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)