~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/rdf/base/idl/nsIRDFXMLParser.idl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 
2
 *
 
3
 * The contents of this file are subject to the Mozilla Public License
 
4
 * Version 1.1 (the "MPL"); you may not use this file except in
 
5
 * compliance with the MPL.  You may obtain a copy of the MPL at
 
6
 * http://www.mozilla.org/MPL/
 
7
 *
 
8
 * Software distributed under the MPL is distributed on an "AS IS" basis,
 
9
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
 
10
 * for the specific language governing rights and limitations under the
 
11
 * MPL.
 
12
 *
 
13
 * The Initial Developer of this code under the MPL is Netscape
 
14
 * Communications Corporation.  Portions created by Netscape are
 
15
 * Copyright (C) 1999 Netscape Communications Corporation.  All Rights
 
16
 * Reserved.
 
17
 *
 
18
 * Contributor(s): 
 
19
 *   Chris Waterson <waterson@netscape.com>
 
20
 */
 
21
 
 
22
#include "nsISupports.idl"
 
23
#include "nsIRDFDataSource.idl"
 
24
#include "nsIStreamListener.idl"
 
25
#include "nsIURI.idl"
 
26
 
 
27
[scriptable, uuid(1831dd2e-1dd2-11b2-bdb3-86b7b50b70b5)]
 
28
interface nsIRDFXMLParser : nsISupports
 
29
{
 
30
    /**
 
31
     * Create a stream listener that can be used to asynchronously
 
32
     * parse RDF/XML.
 
33
     * @param aSink the RDF datasource the will receive the data
 
34
     * @param aBaseURI the base URI used to resolve relative
 
35
     *   references in the RDF/XML
 
36
     * @return an nsIStreamListener object to handle the data
 
37
     */
 
38
    nsIStreamListener parseAsync(in nsIRDFDataSource aSink, in nsIURI aBaseURI);
 
39
 
 
40
    /**
 
41
     * Parse a string of RDF/XML
 
42
     * @param aSink the RDF datasource that will receive the data
 
43
     * @param aBaseURI the base URI used to resolve relative
 
44
     *   references in the RDF/XML
 
45
     * @param aSource a UTF8 string containing RDF/XML data.
 
46
     */
 
47
    void parseString(in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource);
 
48
};