ICE 3.4.2
[php5-ice-freebsdport.git] / java / test / Ice / slicing / objects / ServerPrivate.ice
blobc39a25214cf3fab865ec4b3491dae07dc86e5ed0
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 #ifndef SERVERPRIVATE_ICE
11 #define SERVERPRIVATE_ICE
13 [["java:package:test.Ice.slicing.objects.server"]]
14 module Test
17 // Duplicate types from Test.ice. We cannot use #include since
18 // that will use the types from the same prefix.
19 class SBase
21     string sb;
24 class SBSKnownDerived extends SBase
26     string sbskd;
29 class B
31     string sb;
32     B pb;
35 class D1 extends B
37     string sd1;
38     B pd1;
41 sequence<B> BSeq;
43 class SS1
45     BSeq s;
48 class SS2
50     BSeq s;
53 struct SS
55     SS1 c1;
56     SS2 c2;
59 dictionary<int, B> BDict;
61 exception BaseException
63     string sbe;
64     B pb;
67 exception DerivedException extends BaseException
69     string sde;
70     D1 pd1;
73 class Forward; /* Forward-declared class defined in another compilation unit */
75 interface TestIntf
77     Object SBaseAsObject();
78     SBase SBaseAsSBase();
79     SBase SBSKnownDerivedAsSBase();
80     SBSKnownDerived SBSKnownDerivedAsSBSKnownDerived();
82     SBase SBSUnknownDerivedAsSBase();
84     Object SUnknownAsObject();
86     B oneElementCycle();
87     B twoElementCycle();
88     B D1AsB();
89     D1 D1AsD1();
90     B D2AsB();
92     void paramTest1(out B p1, out B p2);
93     void paramTest2(out B p2, out B p1);
94     B paramTest3(out B p1, out B p2);
95     B paramTest4(out B p);
97     B returnTest1(out B p1, out B p2);
98     B returnTest2(out B p2, out B p1);
99     B returnTest3(B p1, B p2);
101     SS sequenceTest(SS1 p1, SS2 p2);
103     BDict dictionaryTest(BDict bin, out BDict bout);
105     void throwBaseAsBase() throws BaseException;
106     void throwDerivedAsBase() throws BaseException;
107     void throwDerivedAsDerived() throws DerivedException;
108     void throwUnknownDerivedAsBase() throws BaseException;
110     void useForward(out Forward f); /* Use of forward-declared class to verify that code is generated correctly. */
112     void shutdown();
115 // Types private to the server.
116 class SBSUnknownDerived extends SBase
118     string sbsud;
121 class SUnknown
123     string su;
126 class D2 extends B
128     string sd2;
129     B pd2;
132 class D4 extends B
134     B p1;
135     B p2;
138 exception UnknownDerivedException extends BaseException
140     string sude;
141     D2 pd2;
144 class Forward;
146 class Hidden
148     Forward f;
151 class Forward
153     Hidden h;
158 #endif