rdfIDataSource.idl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 rdfITripleVisitor;
  7. /**
  8. * Interface used in RDF to describe data sources.
  9. *
  10. * @status PLASMA
  11. */
  12. [scriptable, uuid(ebce86bd-1568-4a34-a808-9ccf9cde8087)]
  13. interface rdfIDataSource : nsISupports
  14. {
  15. /**
  16. * Visit all the subject resources in the datasource. The order is
  17. * intederminate and may change from one invocation to the next.
  18. * The subjects will be in the aSubject argument in calls into
  19. * aVisitor, aPredicate and aObject will be null.
  20. * @note Implementations may throw NS_ERROR_NOT_IMPLEMENTED for
  21. * this method, but in this case RDF serializations of this
  22. * datasource will not be possible.
  23. */
  24. void visitAllSubjects(in rdfITripleVisitor aVisitor);
  25. /**
  26. * Visit all the triples in the datasource. The order is
  27. * intederminate and may change from one invocation to the next.
  28. * @note Implementations may throw NS_ERROR_NOT_IMPLEMENTED for
  29. * this method, but in this case RDF serializations of this
  30. * datasource will not be possible.
  31. */
  32. void visitAllTriples(in rdfITripleVisitor aVisitor);
  33. };