|
||||||||||
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 Content
public javax.activation.DataHandler getDataHandler()
Content
getDataHandler
in interface Content
public javax.activation.MimeType getMimeType()
Content
getMimeType
in interface Content
public IRI getResolvedSrc()
Content
getResolvedSrc
in interface Content
public IRI getSrc()
Content
RFC4287: 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 Content
public String getValue()
Content
getValue
in interface Content
public <T extends Element> T getValueElement()
Content
getValueElement
in interface Content
public String getWrappedValue()
Content
getWrappedValue
in interface Content
public Content setContentType(Content.Type type)
Content
setContentType
in interface Content
type
- The Content Typepublic Content setDataHandler(javax.activation.DataHandler dataHandler)
Content
setDataHandler
in interface Content
dataHandler
- The DataHandler for the binary content requiring Base64 encodingpublic Content setMimeType(String type)
Content
setMimeType
in interface Content
type
- The media typepublic Content setSrc(String src)
Content
RFC4287: 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 Content
src
- The IRI to use as the src attribute value for the contentpublic Content setValue(String value)
Content
setValue
in interface Content
value
- The string valuepublic <T extends Element> Content setValueElement(T value)
Content
setValueElement
in interface Content
value
- The element to setpublic Content setWrappedValue(String wrappedValue)
Content
setWrappedValue
in interface Content
wrappedValue
- The string value with the wrapping div tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |