Confirmed users, Bureaucrats and Sysops emeriti
2,976
edits
(introduce blank nodes as separate interface, use a node as subject in iterator, as suggested by Dave Beckett (Redland)) |
(→rdfITripleVisitor: adapt comments) |
||
| Line 64: | Line 64: | ||
== rdfITripleVisitor == | == rdfITripleVisitor == | ||
/** | |||
* Interface used in RDF to enumerate triples. | |||
* Also used by rdfIDataSource::getAllSubjects, then aPredicate, | |||
* aObject and aTruthValue are ignored. | |||
* | |||
* @status PLASMA | |||
*/ | |||
interface rdfITripleVisitor : nsISupports | interface rdfITripleVisitor : nsISupports | ||
{ | { | ||
/** | |||
* Callback function for returning query results. | |||
* | |||
* @param aSubject, aPredicate, aObject describe the (sub-)arc | |||
* @return Return Components.returnCode = NS_RDF_STOP_VISIT to | |||
* successfully stop iterating over the query result. Any | |||
* error code will stop the iteration as well. | |||
*/ | |||
void visit(in nsIRDFNode aSubject, in nsIRDFResource aPredicate, | void visit(in nsIRDFNode aSubject, in nsIRDFResource aPredicate, | ||
in nsIRDFNode aObject, in boolean aTruthValue); | in nsIRDFNode aObject, in boolean aTruthValue); | ||