Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIRDFFileSystem Class Reference

#include <nsIRDFFileSystem.h>

Inheritance diagram for nsIRDFFileSystem:
Inheritance graph
[legend]
Collaboration diagram for nsIRDFFileSystem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD GetFolderList (nsIRDFResource *source, nsVoidArray **array) const =0
NS_IMETHOD GetName (nsVoidArray **array) const =0
NS_IMETHOD GetURL (nsVoidArray **array) const =0
void GetValueConst ([shared] out string aConstValue)
 An unscriptable version used to avoid a string copy.
void Init (in string uri)
 This method is called by the nsIRDFService after constructing a resource object to initialize it's URI.
boolean EqualsString (in string aURI)
 Determine if the resource has the given URI.
void GetDelegate (in string aKey, in nsIIDRef aIID,[iid_is(aIID), retval] out nsQIResult aResult)
 Retrieve the "delegate" object for this resource.
void ReleaseDelegate (in string aKey)
 Force a delegate to be "unbound" from the resource.
boolean EqualsNode (in nsIRDFNode aNode)

Public Attributes

readonly attribute string Value
 The single-byte string value of the resource.
readonly attribute AUTF8String ValueUTF8
 The UTF-8 URI of the resource.

Detailed Description

Definition at line 61 of file nsIRDFFileSystem.h.


Member Function Documentation

boolean nsIRDFNode::EqualsNode ( in nsIRDFNode  aNode) [inherited]

Determine if the resource has the given URI.

void nsIRDFResource::GetDelegate ( in string  aKey,
in nsIIDRef  aIID,
[iid_is(aIID), retval] out nsQIResult  aResult 
) [inherited]

Retrieve the "delegate" object for this resource.

A resource may have several delegate objects, each of whose lifetimes is bound to the life of the resource object.

This method will return the delegate for the given key after QueryInterface()-ing it to the requested IID.

If no delegate exists for the specified key, this method will attempt to create one using the component manager. Specifically, it will combine aKey with the resource's URI scheme to produce a ContractID as follows:

component:/rdf/delegate-factory/[key]/[scheme]

This ContractID will be used to locate a factory using the FindFactory() method of nsIComponentManager. If the nsIFactory exists, it will be used to create a "delegate factory"; that is, an object that supports nsIRDFDelegateFactory. The delegate factory will be used to construct the delegate object.

Here is the caller graph for this function:

NS_IMETHOD nsIRDFFileSystem::GetFolderList ( nsIRDFResource source,
nsVoidArray **  array 
) const [pure virtual]
NS_IMETHOD nsIRDFFileSystem::GetName ( nsVoidArray **  array) const [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsIRDFFileSystem::GetURL ( nsVoidArray **  array) const [pure virtual]
void nsIRDFResource::GetValueConst ( [shared] out string  aConstValue) [inherited]

An unscriptable version used to avoid a string copy.

Meant for use as a performance optimization. The string is encoded in UTF-8.

void nsIRDFResource::Init ( in string  uri) [inherited]

This method is called by the nsIRDFService after constructing a resource object to initialize it's URI.

You would not normally call this method directly

Force a delegate to be "unbound" from the resource.

Normally, a delegate object's lifetime will be identical to that of the resource to which it is bound; this method allows a delegate to unlink itself from an RDF resource prematurely.


Member Data Documentation

readonly attribute string nsIRDFResource::Value [inherited]

The single-byte string value of the resource.

Note:
THIS IS OBSOLETE. C++ should use GetValueConst and script should use .valueUTF8

Definition at line 53 of file nsIRDFResource.idl.

readonly attribute AUTF8String nsIRDFResource::ValueUTF8 [inherited]

The UTF-8 URI of the resource.

Definition at line 58 of file nsIRDFResource.idl.


The documentation for this class was generated from the following file: