michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIRDFNode.idl" michael@0: michael@0: %{C++ michael@0: #include "nscore.h" // for char16_t michael@0: %} michael@0: michael@0: [ptr] native const_octet_ptr(const uint8_t); michael@0: michael@0: /** michael@0: * A literal node in the graph, whose value is a string. michael@0: */ michael@0: [scriptable, uuid(E0C493D2-9542-11d2-8EB8-00805F29F370)] michael@0: interface nsIRDFLiteral : nsIRDFNode { michael@0: /** michael@0: * The Unicode string value of the literal. michael@0: */ michael@0: readonly attribute wstring Value; michael@0: michael@0: /** michael@0: * An unscriptable version used to avoid a string copy. Meant michael@0: * for use as a performance optimization. michael@0: */ michael@0: [noscript] void GetValueConst([shared] out wstring aConstValue); michael@0: }; michael@0: michael@0: /** michael@0: * A literal node in the graph, whose value is a date michael@0: */ michael@0: [scriptable, uuid(E13A24E1-C77A-11d2-80BE-006097B76B8E)] michael@0: interface nsIRDFDate : nsIRDFNode { michael@0: /** michael@0: * The date value of the literal michael@0: */ michael@0: readonly attribute PRTime Value; michael@0: }; michael@0: michael@0: /** michael@0: * A literal node in the graph, whose value is an integer michael@0: */ michael@0: [scriptable, uuid(E13A24E3-C77A-11d2-80BE-006097B76B8E)] michael@0: interface nsIRDFInt : nsIRDFNode { michael@0: /** michael@0: * The integer value of the literal michael@0: */ michael@0: readonly attribute long Value; michael@0: }; michael@0: michael@0: /** michael@0: * A literal node in the graph, whose value is arbitrary michael@0: * binary data. michael@0: */ michael@0: [scriptable, uuid(237f85a2-1dd2-11b2-94af-8122582fc45e)] michael@0: interface nsIRDFBlob : nsIRDFNode { michael@0: /** michael@0: * The binary data. michael@0: */ michael@0: [noscript] readonly attribute const_octet_ptr value; michael@0: michael@0: /** michael@0: * The data's length. michael@0: */ michael@0: readonly attribute long length; michael@0: };