summaryrefslogtreecommitdiff
path: root/java/test/Ice/translator/Metadata.ice
blob: 3993c2fdd6c5625ccd31241af1442efd4a9ab32a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

module MetadataTest
{
    sequence<int> IntSeq;
    ["java:type:java.util.LinkedList<Integer>"] sequence<int> IntList;
    ["java:type:java.util.LinkedList<int[]>"] sequence<IntSeq> IntSeqList;

    sequence<Object> ObjectSeq;
    ["java:type:java.util.LinkedList<Ice.Object>"] sequence<Object> ObjectList;
    ["java:type:java.util.LinkedList<Ice.Object[]>"] sequence<ObjectSeq> ObjectSeqList;

    dictionary<string, string> StringDict;
    ["java:type:java.util.TreeMap<String, String>"] dictionary<string, string> StringMap;

    dictionary<string, Object> ObjectDict;
    ["java:type:java.util.TreeMap<String, Ice.Object>"] dictionary<string, Object> ObjectMap;

    sequence<StringDict> StringDictSeq;
    sequence<string> StringSeq;
    ["java:type:java.util.ArrayList<String>"] sequence<string> StringList;
    sequence<StringList> StringListSeq;
    sequence<StringListSeq> StringListSeqSeq;

    dictionary<string, StringSeq> StringSeqDict;
    dictionary<string, StringList> StringListDict;
    dictionary<string, StringListSeq> StringListSeqDict;

    ["java:getset"] class C
    {
        IntSeq intSeqMember;
        IntList intListMember;
        ["java:type:java.util.ArrayList<Integer>"] IntSeq modifiedIntSeqMember;
        ["java:type:Test.CustomList<Integer>"] IntList modifiedIntListMember;

        ObjectSeq objectSeqMember;
        ObjectList objectListMember;
        ["java:type:java.util.ArrayList<Ice.Object>"] ObjectSeq modifiedObjectSeqMember;
        ["java:type:Test.CustomList<Ice.Object>"] ObjectList modifiedObjectListMember;

        StringDict stringDictMember;
        StringMap stringMapMember;
        ["java:type:java.util.TreeMap<String, String>"] StringDict modifiedStringDictMember;
        ["java:type:java.util.IdentityHashMap<String, String>"] StringMap modifiedStringMapMember;

        ObjectDict objectDictMember;
        ObjectMap objectMapMember;
        ["java:type:java.util.TreeMap<String, Ice.Object>"] ObjectDict modifiedObjectDictMember;
        ["java:type:java.util.IdentityHashMap<String, Ice.Object>"] ObjectMap modifiedObjectMapMember;

        IntSeq opIntSeq(IntSeq inArg, out IntSeq outArg);
        IntList opIntList(IntList inArg, out IntList outArg);

        ObjectSeq opObjectSeq(ObjectSeq inArg, out ObjectSeq outArg);
        ObjectList opObjectList(ObjectList inArg, out ObjectList outArg);

        StringDict opStringDict(StringDict inArg, out StringDict outArg);
        StringMap opStringMap(StringMap inArg, out StringMap outArg);

        ["amd"] IntSeq opIntSeqAMD(IntSeq inArg, out IntSeq outArg);
        ["amd"] IntList opIntListAMD(IntList inArg, out IntList outArg);

        ["amd"] ObjectSeq opObjectSeqAMD(ObjectSeq inArg, out ObjectSeq outArg);
        ["amd"] ObjectList opObjectListAMD(ObjectList inArg, out ObjectList outArg);

        ["amd"] StringDict opStringDictAMD(StringDict inArg, out StringDict outArg);
        ["amd"] StringMap opStringMapAMD(StringMap inArg, out StringMap outArg);

        ["java:type:java.util.LinkedList<Integer>"] IntSeq
        opIntSeq2(["java:type:java.util.ArrayList<Integer>"] IntSeq inArg,
                  out ["java:type:Test.CustomList<Integer>"] IntSeq outArg);

        ["java:type:java.util.ArrayList<Integer>"] IntList
        opIntList2(["java:type:java.util.ArrayList<Integer>"] IntList inArg,
                   out ["java:type:Test.CustomList<Integer>"] IntList outArg);

        ["java:type:java.util.LinkedList<Ice.Object>"] ObjectSeq
        opObjectSeq2(["java:type:java.util.ArrayList<Ice.Object>"] ObjectSeq inArg,
                     out ["java:type:Test.CustomList<Ice.Object>"] ObjectSeq outArg);

        ["java:type:java.util.ArrayList<Ice.Object>"] ObjectList
        opObjectList2(["java:type:java.util.ArrayList<Ice.Object>"] ObjectList inArg,
                      out ["java:type:Test.CustomList<Ice.Object>"] ObjectList outArg);

        ["java:type:java.util.IdentityHashMap<String, String>"] StringMap
        opStringMap2(["java:type:java.util.IdentityHashMap<String, String>"] StringMap inArg,
                     out ["java:type:java.util.IdentityHashMap<String, String>"] StringMap outArg);

        ["amd", "java:type:java.util.LinkedList<Integer>"] IntSeq
        opIntSeq2AMD(["java:type:java.util.ArrayList<Integer>"] IntSeq inArg,
                     out ["java:type:Test.CustomList<Integer>"] IntSeq outArg);

        ["amd", "java:type:java.util.ArrayList<Integer>"] IntList
        opIntList2AMD(["java:type:java.util.ArrayList<Integer>"] IntList inArg,
                      out ["java:type:Test.CustomList<Integer>"] IntList outArg);

        ["amd", "java:type:java.util.LinkedList<Ice.Object>"] ObjectSeq
        opObjectSeq2AMD(["java:type:java.util.ArrayList<Ice.Object>"] ObjectSeq inArg,
                     out ["java:type:Test.CustomList<Ice.Object>"] ObjectSeq outArg);

        ["amd", "java:type:java.util.ArrayList<Ice.Object>"] ObjectList
        opObjectList2AMD(["java:type:java.util.ArrayList<Ice.Object>"] ObjectList inArg,
                      out ["java:type:Test.CustomList<Ice.Object>"] ObjectList outArg);
    };

    ["protected", "java:getset"] class C2
    {
        IntSeq intSeqMember;
        ["java:type:java.util.ArrayList<Integer>"] IntSeq modifiedIntSeqMember;
    };

    class C3
    {
        ["protected"] IntSeq intSeqMember;
        ["protected", "java:type:java.util.ArrayList<Integer>"] IntSeq modifiedIntSeqMember;
    };
};