nsIFeedContainer 编辑

toolkit/components/feeds/public/nsIFeedContainer.idlScriptable This interface provides standard fields used by both feeds (nsIFeed) and feed entries (nsIFeedEntry) 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedElementBase Last changed in Gecko 1.8.1 (Firefox 2 / Thunderbird 2 / SeaMonkey 1.1)

Method overview

void normalize();

Attributes

AttributeTypeDescription
authorsnsIArrayAn array of nsIFeedPerson objects describing the authors of the feed or entry.
categoriesnsIArrayAn 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.
contributorsnsIArrayAn array of nsIFeedPerson objects describing contributors to the feed or entry.
fieldsnsIWritablePropertyBag2Provides 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 get("dc:subject");. See nsIFeedResult.registerExtensionPrefix() for more information about prefixes.

idAStringA string that identifies the feed or entry. Not all feeds have these, but all major feed formats have IDs for each entry.
linknsIURIA URI containing the primary link for the feed or entry.
linksnsIArrayAn array of all links for a feed or entry.
rightsnsIFeedTextConstructThe feed or entry's rights or license text.
titlensIFeedTextConstructThe 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.
updatedAStringA string containing the date the feed or entry was last updated, in RFC822 form. This string is parsable by JavaScript and mail code.

Methods

normalize()

Synchronizes a container's fields with its convenience attributes.

void normalize();
Parameters

None.

See also

Interwiki link

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:100 次

字数:5695

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文