2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-05-04 03:37:07 +00:00
|
|
|
|
|
|
|
#include "nsIRDFNode.idl"
|
|
|
|
|
|
|
|
%{C++
|
2014-01-04 15:02:17 +00:00
|
|
|
#include "nscore.h" // for char16_t
|
1999-05-04 03:37:07 +00:00
|
|
|
%}
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
[ptr] native const_octet_ptr(const uint8_t);
|
2002-01-15 01:57:17 +00:00
|
|
|
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* A literal node in the graph, whose value is a string.
|
|
|
|
*/
|
1999-05-04 03:37:07 +00:00
|
|
|
[scriptable, uuid(E0C493D2-9542-11d2-8EB8-00805F29F370)]
|
|
|
|
interface nsIRDFLiteral : nsIRDFNode {
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* The Unicode string value of the literal.
|
|
|
|
*/
|
1999-05-04 03:37:07 +00:00
|
|
|
readonly attribute wstring Value;
|
|
|
|
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* An unscriptable version used to avoid a string copy. Meant
|
|
|
|
* for use as a performance optimization.
|
|
|
|
*/
|
|
|
|
[noscript] void GetValueConst([shared] out wstring aConstValue);
|
1999-05-04 03:37:07 +00:00
|
|
|
};
|
|
|
|
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* A literal node in the graph, whose value is a date
|
|
|
|
*/
|
1999-05-04 03:37:07 +00:00
|
|
|
[scriptable, uuid(E13A24E1-C77A-11d2-80BE-006097B76B8E)]
|
|
|
|
interface nsIRDFDate : nsIRDFNode {
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* The date value of the literal
|
|
|
|
*/
|
2012-08-30 07:10:40 +00:00
|
|
|
readonly attribute PRTime Value;
|
1999-05-04 03:37:07 +00:00
|
|
|
};
|
|
|
|
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* A literal node in the graph, whose value is an integer
|
|
|
|
*/
|
1999-05-04 03:37:07 +00:00
|
|
|
[scriptable, uuid(E13A24E3-C77A-11d2-80BE-006097B76B8E)]
|
|
|
|
interface nsIRDFInt : nsIRDFNode {
|
1999-06-25 20:51:13 +00:00
|
|
|
/**
|
|
|
|
* The integer value of the literal
|
|
|
|
*/
|
1999-05-04 03:37:07 +00:00
|
|
|
readonly attribute long Value;
|
|
|
|
};
|
|
|
|
|
2002-01-15 01:57:17 +00:00
|
|
|
/**
|
|
|
|
* A literal node in the graph, whose value is arbitrary
|
|
|
|
* binary data.
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(237f85a2-1dd2-11b2-94af-8122582fc45e)]
|
|
|
|
interface nsIRDFBlob : nsIRDFNode {
|
|
|
|
/**
|
|
|
|
* The binary data.
|
|
|
|
*/
|
2002-01-24 23:03:01 +00:00
|
|
|
[noscript] readonly attribute const_octet_ptr value;
|
2002-01-15 01:57:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The data's length.
|
|
|
|
*/
|
|
|
|
readonly attribute long length;
|
|
|
|
};
|