summaryrefslogtreecommitdiff
path: root/js/src/Ice/Value.d.ts
blob: 69fe51579cac13a9115da5823b0588a1afd4b8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

declare module "ice"
{
    namespace Ice
    {
        /**
         * The base class for instances of Slice classes.
         */
        class Value
        {
            /**
             * The Ice run time invokes this method prior to marshaling an object's data members. This allows a subclass
             * to override this method in order to validate its data members.
             */
            ice_preMarshal():void;

            /**
             * The Ice run time invokes this method vafter unmarshaling an object's data members. This allows a
             * subclass to override this method in order to perform additional initialization.
             */
            ice_postUnmarshal():void;

            /**
             * Obtains the Slice type ID of the most-derived class supported by this object.
             * @return The type ID.
             */
            ice_id():string;

            /**
             * Obtains the Slice type ID of this type.
             * @return The return value is always "::Ice::Object".
             */
            static ice_staticId():string;

            /**
             * Obtains the sliced data associated with this instance.
             * @return The sliced data if the value has a preserved-slice base class and has been sliced during
             * unmarshaling of the value, nil otherwise.
             */
            ice_getSlicedData():SlicedData;
        }

        class InterfaceByValue extends Value
        {
            constructor(id:string);
        }
    }
}