Search completed in 1.44 seconds.
8 results for "nsIRDFDataSource":
RDF in Mozilla FAQ - Archive of obsolete content
ArchiveWeb StandardsRDF in Mozilla FAQ
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
MozillaTechXPCOMAggregating 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
ArchiveMozillaRDF Datasource How-To
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
MozillaBird 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.
Enhanced Extension Installation - Archive of obsolete content
ArchiveAdd-onsEnhanced Extension Installation
the extension system retains an object implementing nsirdfdatasource (so that it can supply special properties in addition to the set stored simply in the xml datasource) and an internal member that holds the single rdf/xml datasource.
XUL Template Primer - Bindings - Archive of obsolete content
ArchiveMozillaXULXUL Template Primer - Bindings
(see the nsirdfdatasource interface for more details.) in our example, the <rule> will be instantiated three times: once each for alison, jack, and lumpy.
nsIDownloadManager
MozillaTechXPCOMReferenceInterfacensIDownloadManager
datasource nsirdfdatasource read only.
nsIXULTemplateQueryProcessor
MozillaTechXPCOMReferenceInterfacensIXULTemplateQueryProcessor
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().