rdf/base/idl/nsIRDFLiteral.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     6 #include "nsIRDFNode.idl"
     8 %{C++
     9 #include "nscore.h" // for char16_t
    10 %}
    12 [ptr] native const_octet_ptr(const uint8_t);
    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;
    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 };
    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 };
    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 };
    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;
    64     /**
    65      * The data's length.
    66      */
    67     readonly attribute long length;
    68 };

mercurial