Back to index

lightning-sunbird  0.9+nobinonly
Defines
rdf.h File Reference
#include "nsError.h"

Go to the source code of this file.

Defines

#define DEFINE_RDF_VOCAB(ns, prefix, name)   static const char kURI##prefix##_##name[] = ns #name
 The following macros are to aid in vocabulary definition.
#define RDF_NAMESPACE_URI   "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 Core RDF vocabularies that we use to define semantics.
#define WEB_NAMESPACE_URI   "http://home.netscape.com/WEB-rdf#"
#define NC_NAMESPACE_URI   "http://home.netscape.com/NC-rdf#"
#define DEVMO_NAMESPACE_URI_PREFIX   "http://developer.mozilla.org/rdf/vocabulary/"
Standard RDF error codes
#define NS_RDF_CURSOR_EMPTY   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_RDF, 1)
#define NS_RDF_NO_VALUE   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_RDF, 2)
#define NS_RDF_ASSERTION_ACCEPTED   NS_OK
#define NS_RDF_ASSERTION_REJECTED   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_RDF, 3)
#define NS_RDF_STOP_VISIT   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_RDF, 4)
#define NS_RDF_CONTRACTID   "@mozilla.org/rdf"
#define NS_RDF_DATASOURCE_CONTRACTID   NS_RDF_CONTRACTID "/datasource;1"
#define NS_RDF_DATASOURCE_CONTRACTID_PREFIX   NS_RDF_DATASOURCE_CONTRACTID "?name="
#define NS_RDF_RESOURCE_FACTORY_CONTRACTID   "@mozilla.org/rdf/resource-factory;1"
#define NS_RDF_RESOURCE_FACTORY_CONTRACTID_PREFIX   NS_RDF_RESOURCE_FACTORY_CONTRACTID "?name="
#define NS_RDF_INFER_DATASOURCE_CONTRACTID_PREFIX   NS_RDF_CONTRACTID "/infer-datasource;1?engine="
#define NS_RDF_SERIALIZER   NS_RDF_CONTRACTID "/serializer;1?format="
#define NS_RDF_DELEGATEFACTORY_CONTRACTID   "@mozilla.org/rdf/delegate-factory;1"
#define NS_RDF_DELEGATEFACTORY_CONTRACTID_PREFIX   NS_RDF_DELEGATEFACTORY_CONTRACTID "?key="

Define Documentation

#define DEFINE_RDF_VOCAB (   ns,
  prefix,
  name 
)    static const char kURI##prefix##_##name[] = ns #name

The following macros are to aid in vocabulary definition.

They creates const char*'s for "kURI[prefix]_[name]", appropriate complete namespace qualification on the URI, e.g.,

define RDF_NAMESPACE_URI "http://www.w3.org/TR/WD-rdf-syntax#"

DEFINE_RDF_ELEMENT(RDF_NAMESPACE_URI, RDF, ID);

will define:

kURIRDF_ID to be "http://www.w3.org/TR/WD-rdf-syntax#ID"

Definition at line 63 of file rdf.h.

#define DEVMO_NAMESPACE_URI_PREFIX   "http://developer.mozilla.org/rdf/vocabulary/"

Definition at line 73 of file rdf.h.

#define NC_NAMESPACE_URI   "http://home.netscape.com/NC-rdf#"

Definition at line 72 of file rdf.h.

Definition at line 91 of file rdf.h.

Definition at line 96 of file rdf.h.

#define NS_RDF_CONTRACTID   "@mozilla.org/rdf"

Definition at line 104 of file rdf.h.

Definition at line 83 of file rdf.h.

Definition at line 105 of file rdf.h.

Definition at line 106 of file rdf.h.

#define NS_RDF_DELEGATEFACTORY_CONTRACTID   "@mozilla.org/rdf/delegate-factory;1"

Definition at line 115 of file rdf.h.

Definition at line 116 of file rdf.h.

Definition at line 109 of file rdf.h.

Definition at line 87 of file rdf.h.

#define NS_RDF_RESOURCE_FACTORY_CONTRACTID   "@mozilla.org/rdf/resource-factory;1"

Definition at line 107 of file rdf.h.

Definition at line 108 of file rdf.h.

Definition at line 111 of file rdf.h.

Definition at line 99 of file rdf.h.

#define RDF_NAMESPACE_URI   "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

Core RDF vocabularies that we use to define semantics.

Definition at line 70 of file rdf.h.

#define WEB_NAMESPACE_URI   "http://home.netscape.com/WEB-rdf#"

Definition at line 71 of file rdf.h.