1 // Copyright (c) 2000, 2001 NEC Corporation. |
|
2 |
|
3 // Adapted for Mauve by Audrius Meskauskas <audriusa@bluewin.ch> |
|
4 |
|
5 // This file is part of Mauve. |
|
6 |
|
7 // Mauve is free software; you can redistribute it and/or modify |
|
8 // it under the terms of the GNU General Public License as published by |
|
9 // the Free Software Foundation; either version 2, or (at your option) |
|
10 // any later version. |
|
11 |
|
12 // Mauve is distributed in the hope that it will be useful, |
|
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 // GNU General Public License for more details. |
|
16 |
|
17 // You should have received a copy of the GNU General Public License |
|
18 // along with Mauve; see the file COPYING. If not, write to |
|
19 // the Free Software Foundation, 59 Temple Place - Suite 330, |
|
20 // Boston, MA 02111-1307, USA. |
|
21 |
|
22 /* |
|
23 This code originally came from the OMG's CORBA Open Source Testing project, |
|
24 which lived at cost.omg.org. That site no longer exists. |
|
25 |
|
26 All the contributing companies agreed to release their tests under the |
|
27 terms of the GNU Lesser General Public License, available in the file |
|
28 COPYING.LIB. |
|
29 |
|
30 The code has been modified integrating into Mauve test environment and |
|
31 removing tests that are not yet supported by Suns jre 1.4. Hence the license |
|
32 is now GPL. |
|
33 |
|
34 We downloaded the code from http://sourceforge.net/projects/corba-cost/, |
|
35 administrated by Duncan Grisby. |
|
36 */ |
|
37 |
|
38 package gnu.testlet.org.omg.CORBA.ORB.RF11; |
|
39 |
|
40 public final class D_d_short |
|
41 implements org.omg.CORBA.portable.IDLEntity |
|
42 { |
|
43 private int ___l1; |
|
44 private int ___l2; |
|
45 private short __discriminator; |
|
46 private boolean __uninitialized = true; |
|
47 |
|
48 public D_d_short() |
|
49 { |
|
50 } |
|
51 |
|
52 public short discriminator() |
|
53 { |
|
54 if (__uninitialized) |
|
55 throw new org.omg.CORBA.BAD_OPERATION(); |
|
56 return __discriminator; |
|
57 } |
|
58 |
|
59 public int l1() |
|
60 { |
|
61 if (__uninitialized) |
|
62 throw new org.omg.CORBA.BAD_OPERATION(); |
|
63 verifyl1(__discriminator); |
|
64 return ___l1; |
|
65 } |
|
66 |
|
67 public void l1(int value) |
|
68 { |
|
69 __discriminator = 1; |
|
70 ___l1 = value; |
|
71 __uninitialized = false; |
|
72 } |
|
73 |
|
74 private void verifyl1(short discriminator) |
|
75 { |
|
76 if (discriminator != 1) |
|
77 throw new org.omg.CORBA.BAD_OPERATION(); |
|
78 } |
|
79 |
|
80 public int l2() |
|
81 { |
|
82 if (__uninitialized) |
|
83 throw new org.omg.CORBA.BAD_OPERATION(); |
|
84 verifyl2(__discriminator); |
|
85 return ___l2; |
|
86 } |
|
87 |
|
88 public void l2(int value) |
|
89 { |
|
90 __discriminator = 2; |
|
91 ___l2 = value; |
|
92 __uninitialized = false; |
|
93 } |
|
94 |
|
95 private void verifyl2(short discriminator) |
|
96 { |
|
97 if (discriminator != 2) |
|
98 throw new org.omg.CORBA.BAD_OPERATION(); |
|
99 } |
|
100 |
|
101 public void _default() |
|
102 { |
|
103 __discriminator = -32768; |
|
104 __uninitialized = false; |
|
105 } |
|
106 } // class D_d_short |
|