Search completed in 1.44 seconds.
8 results for "nsIRDFDataSource":
RDF in Mozilla FAQ - Archive of obsolete content
at ds will load asynchronously, so assertions will not // be immediately available alternatively, you can create one directly using the xpcom component manager, as the following code fragment illustrates: // create an rdf/xml datasource using the xpcom component manager var ds = components .classes["@mozilla.org/rdf/datasource;1?name=xml-datasource"] .createinstance(components.interfaces.
nsirdfdatasource); // the nsirdfremotedatasource interface has the interfaces // that we need to setup the datasource.
... the
nsirdfdatasource interface is the means by which you access and manipulate the assertions in a datasource.
...this interface is derived from
nsirdfdatasource.
...And 4 more matches
Aggregating the In-Memory Datasource
say you were writing a datasource2, and the way you chose to implement it was to "wrap" the in-memory datasource; i.e., myclass : public nsimyinterface, public
nsirdfdatasource { private: nscomptr<
nsirdfdatasource> minner; public: //
nsirdfdatasource methods ns_imethod init(const char* auri) { return minner->init(auri); } ns_imethod geturi(char* *auri) { return minner->geturi(auri); } // etc., for each method in
nsirdfdatasource!
... technical details as before, have an nscomptr as your delegate, but this time around,don't derive from
nsirdfdatasource.
... also, instead of keeping an nscomptr<
nsirdfdatasource>, you'll just want an nscomptr<nsisupports>: class myclass : public nsimyinterface { ...
...And 3 more matches
RDF Datasource How-To - Archive of obsolete content
mapping your data to nodes and arcs [write me!] implementing the
nsirdfdatasource interface your first chore will be to implement the
nsirdfdatasource interface.
...for example, you may choose to delegate to the in-memory datasource, which is a generic datasource that implements
nsirdfdatasource.
...this is an extreme case of delegation, where you use xpcom aggregation to implement the
nsirdfdatasource interface.
...And 2 more matches
A bird's-eye view of the Mozilla framework
suppose the client already has an
nsirdfdatasource object representing a sub-graph of an rdf graph and calls
nsirdfdatasource.gettarget(resource, nc_link, true) to obtain an nsirdfnode representing a specific node in the graph, in this case a link to ahelp viewer document page.
... var tocds = toctree.database; nsirdfcompositedatasource inherits from
nsirdfdatasource.
... var resource = rdf.getresource(rdfid); nsirdfcompositedatasource inherits from
nsirdfdatasource, which supports a gettarget() method for obtaining the nsirdfnode for a given resource and property.
nsIXULTemplateQueryProcessor
currently, the datasource supplied to the methods will always be an
nsirdfdatasource or a dom node, and will always be the same one in between calls to initializeforbuilding() and done().