rdfITripleVisitor.idl 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. interface nsIRDFResource;
  7. interface nsIRDFNode;
  8. /**
  9. * Interface used in RDF to enumerate triples.
  10. * Also used by rdfIDataSource::getAllSubjects, then aPredicate,
  11. * aObject and aTruthValue are ignored.
  12. *
  13. * @status PLASMA
  14. */
  15. [scriptable, function, uuid(aafea151-c271-4505-9978-a100d292800c)]
  16. interface rdfITripleVisitor : nsISupports
  17. {
  18. /**
  19. * Callback function for returning query results.
  20. *
  21. * @param aSubject, aPredicate, aObject describe the (sub-)arc
  22. * @returnCode NS_RDF_STOP_VISIT to stop iterating over the query result.
  23. * Any error code will stop the iteration as well.
  24. */
  25. void visit(in nsIRDFNode aSubject, in nsIRDFResource aPredicate,
  26. in nsIRDFNode aObject, in boolean aTruthValue);
  27. };