ICE 3.4.2
[php5-ice-freebsdport.git] / java / test / Ice / slicing / objects / ClientPrivate.ice
bloba2828d4c6c29b1fa99dc898642c0324439959d65
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 CLIENTPRIVATE_ICE
11 #define CLIENTPRIVATE_ICE
13 [["java:package:test.Ice.slicing.objects.client"]]
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 client.
116 class D3 extends B
118     string sd3;
119     B pd3;
122 class Forward;
124 class Hidden
126     Forward f;
129 class Forward
131     Hidden h;
136 #endif