1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rdf/base/idl/rdfITripleVisitor.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIRDFResource; 1.12 +interface nsIRDFNode; 1.13 + 1.14 +/** 1.15 + * Interface used in RDF to enumerate triples. 1.16 + * Also used by rdfIDataSource::getAllSubjects, then aPredicate, 1.17 + * aObject and aTruthValue are ignored. 1.18 + * 1.19 + * @status PLASMA 1.20 + */ 1.21 + 1.22 +[scriptable, function, uuid(aafea151-c271-4505-9978-a100d292800c)] 1.23 +interface rdfITripleVisitor : nsISupports 1.24 +{ 1.25 + /** 1.26 + * Callback function for returning query results. 1.27 + * 1.28 + * @param aSubject, aPredicate, aObject describe the (sub-)arc 1.29 + * @returnCode NS_RDF_STOP_VISIT to stop iterating over the query result. 1.30 + * Any error code will stop the iteration as well. 1.31 + */ 1.32 + void visit(in nsIRDFNode aSubject, in nsIRDFResource aPredicate, 1.33 + in nsIRDFNode aObject, in boolean aTruthValue); 1.34 +};