|
1 /* -*- Mode: C++; 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 |
|
6 #include "nsIRDFNode.idl" |
|
7 |
|
8 %{C++ |
|
9 #include "nscore.h" // for char16_t |
|
10 %} |
|
11 |
|
12 [ptr] native const_octet_ptr(const uint8_t); |
|
13 |
|
14 /** |
|
15 * A literal node in the graph, whose value is a string. |
|
16 */ |
|
17 [scriptable, uuid(E0C493D2-9542-11d2-8EB8-00805F29F370)] |
|
18 interface nsIRDFLiteral : nsIRDFNode { |
|
19 /** |
|
20 * The Unicode string value of the literal. |
|
21 */ |
|
22 readonly attribute wstring Value; |
|
23 |
|
24 /** |
|
25 * An unscriptable version used to avoid a string copy. Meant |
|
26 * for use as a performance optimization. |
|
27 */ |
|
28 [noscript] void GetValueConst([shared] out wstring aConstValue); |
|
29 }; |
|
30 |
|
31 /** |
|
32 * A literal node in the graph, whose value is a date |
|
33 */ |
|
34 [scriptable, uuid(E13A24E1-C77A-11d2-80BE-006097B76B8E)] |
|
35 interface nsIRDFDate : nsIRDFNode { |
|
36 /** |
|
37 * The date value of the literal |
|
38 */ |
|
39 readonly attribute PRTime Value; |
|
40 }; |
|
41 |
|
42 /** |
|
43 * A literal node in the graph, whose value is an integer |
|
44 */ |
|
45 [scriptable, uuid(E13A24E3-C77A-11d2-80BE-006097B76B8E)] |
|
46 interface nsIRDFInt : nsIRDFNode { |
|
47 /** |
|
48 * The integer value of the literal |
|
49 */ |
|
50 readonly attribute long Value; |
|
51 }; |
|
52 |
|
53 /** |
|
54 * A literal node in the graph, whose value is arbitrary |
|
55 * binary data. |
|
56 */ |
|
57 [scriptable, uuid(237f85a2-1dd2-11b2-94af-8122582fc45e)] |
|
58 interface nsIRDFBlob : nsIRDFNode { |
|
59 /** |
|
60 * The binary data. |
|
61 */ |
|
62 [noscript] readonly attribute const_octet_ptr value; |
|
63 |
|
64 /** |
|
65 * The data's length. |
|
66 */ |
|
67 readonly attribute long length; |
|
68 }; |