nsIFeedContainer
From MDC
The nsIFeedContainer interface provides standard fields used by both feeds (nsIFeed) and feed entries (nsIFeedEntry).
Contents |
nsIFeedContainer is defined in toolkit/components/feeds/public/nsIFeedContainer.idl. It is scriptable and
unfrozen (hasn't changed since Mozilla 1.8.1).
Inherits from: nsIFeedElementBase
[edit] Method overview
normalize();
|
[edit] Attributes
| Attribute | Type | Description |
authors
| nsIArray
| An array of nsIFeedPerson objects describing the authors of the feed or entry.
|
categories
| nsIArray
| An array of the categories found in a feed or entry.
Note: The returned array will contain
nsIFeedCategory objects, except that interface has not been implemented yet. |
contributors
| nsIArray
| An array of nsIFeedPerson objects describing contributors to the feed or entry.
|
fields
| nsIWritablePropertyBag2
| Provides access to all the fields found in the document. Common Atom and RSS fields are normalized, including some namespaced extensions such as "dc:subject" and "content:encoded". Consumers can avoid normalization by checking the feed type and accessing specific fields.
Common namespaces are accessed using prefixes, such as |
id
| AString
| A string that identifies the feed or entry. Not all feeds have these, but all major feed formats have IDs for each entry. |
link
| nsIURI
| A URI containing the primary link for the feed or entry. |
rights
| nsIFeedTextConstruct
| The feed or entry's rights or license text. |
title
| nsIFeedTextConstruct
| The feed or entry's title. Keep in mind that some feeds have no title, and some use markup in their titles, so be cautious when decoding this attribute. |
updated
| AString
| A string containing the date the feed or entry was last updated, in RFC822 form. This string is parsable by JavaScript and mail code. |
[edit] Methods
[edit] normalize()
Synchronizes a container's fields with its convenience attributes.
void normalize();