|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.model.ElementWrapper
org.apache.abdera.ext.rss.RssContent
public class RssContent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.abdera.model.Content |
|---|
Content.Type |
| Constructor Summary | |
|---|---|
RssContent(Element internal)
|
|
RssContent(Factory factory,
QName qname)
|
|
| Method Summary | ||
|---|---|---|
Content.Type |
getContentType()
Returns the Content Type |
|
javax.activation.DataHandler |
getDataHandler()
Attempts to Base64 decode the string value of the content element. |
|
javax.activation.MimeType |
getMimeType()
RFC4287: On the atom:content element, the value of the "type" attribute MAY be one of "text", "html", or "xhtml". |
|
IRI |
getResolvedSrc()
Returns the fully qualified URI form of the content src attribute. |
|
IRI |
getSrc()
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. |
|
String |
getValue()
Returns the string value of this atom:content element |
|
|
getValueElement()
Return the value element or null if type="text", type="html" or type is some non-XML media type |
|
String |
getWrappedValue()
Return the string value of the atom:content element with the enclosing div tag if type="xhtml" |
|
Content |
setContentType(Content.Type type)
Set the Content Type |
|
Content |
setDataHandler(javax.activation.DataHandler dataHandler)
Sets the string value of the content element by Base64 encoding the specifed byte array. |
|
Content |
setMimeType(String type)
RFC4287: On the atom:content element, the value of the "type" attribute MAY be one of "text", "html", or "xhtml". |
|
Content |
setSrc(String src)
RFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. |
|
Content |
setValue(String value)
Set the string value of the atom:content element |
|
|
setValueElement(T value)
Set the value element of the content. |
|
Content |
setWrappedValue(String wrappedValue)
Set the string value of the atom:content with the enclosing div tag |
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public RssContent(Element internal)
public RssContent(Factory factory,
QName qname)
| Method Detail |
|---|
public Content.Type getContentType()
Content
getContentType in interface Contentpublic javax.activation.DataHandler getDataHandler()
Content
getDataHandler in interface Contentpublic javax.activation.MimeType getMimeType()
Content
getMimeType in interface Contentpublic IRI getResolvedSrc()
Content
getResolvedSrc in interface Contentpublic IRI getSrc()
ContentRFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. If the "src" attribute is present, atom:content MUST be empty. Atom Processors MAY use the IRI to retrieve the content and MAY choose to ignore remote content or to present it in a different manner than local content.
If the "src" attribute is present, the "type" attribute SHOULD be provided and MUST be a MIME media type, rather than "text", "html", or "xhtml".
getSrc in interface Contentpublic String getValue()
Content
getValue in interface Contentpublic <T extends Element> T getValueElement()
Content
getValueElement in interface Contentpublic String getWrappedValue()
Content
getWrappedValue in interface Contentpublic Content setContentType(Content.Type type)
Content
setContentType in interface Contenttype - The Content Typepublic Content setDataHandler(javax.activation.DataHandler dataHandler)
Content
setDataHandler in interface ContentdataHandler - The DataHandler for the binary content requiring Base64 encodingpublic Content setMimeType(String type)
Content
setMimeType in interface Contenttype - The media typepublic Content setSrc(String src)
ContentRFC4287: atom:content MAY have a "src" attribute, whose value MUST be an IRI reference. If the "src" attribute is present, atom:content MUST be empty. Atom Processors MAY use the IRI to retrieve the content and MAY choose to ignore remote content or to present it in a different manner than local content.
If the "src" attribute is present, the "type" attribute SHOULD be provided and MUST be a MIME media type, rather than "text", "html", or "xhtml".
setSrc in interface Contentsrc - The IRI to use as the src attribute value for the contentpublic Content setValue(String value)
Content
setValue in interface Contentvalue - The string valuepublic <T extends Element> Content setValueElement(T value)
Content
setValueElement in interface Contentvalue - The element to setpublic Content setWrappedValue(String wrappedValue)
Content
setWrappedValue in interface ContentwrappedValue - The string value with the wrapping div tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||