tests/libjava-mauve/src/gnu/testlet/org/omg/CORBA/ORB/RF11/D_d_B.java
branchjk_new_structure
changeset 1541 75c2e24dea9a
parent 1540 92ac284961c1
child 1542 be11db817bcf
equal deleted inserted replaced
1540:92ac284961c1 1541:75c2e24dea9a
     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_B
       
    41   implements org.omg.CORBA.portable.IDLEntity
       
    42 {
       
    43   private int ___l1;
       
    44   private int ___l2;
       
    45   private int ___l3;
       
    46   private B __discriminator;
       
    47   private boolean __uninitialized = true;
       
    48 
       
    49   public D_d_B()
       
    50   {
       
    51   }
       
    52 
       
    53   public B discriminator()
       
    54   {
       
    55     if (__uninitialized)
       
    56       throw new org.omg.CORBA.BAD_OPERATION();
       
    57     return __discriminator;
       
    58   }
       
    59 
       
    60   public int l1()
       
    61   {
       
    62     if (__uninitialized)
       
    63       throw new org.omg.CORBA.BAD_OPERATION();
       
    64     verifyl1(__discriminator);
       
    65     return ___l1;
       
    66   }
       
    67 
       
    68   public void l1(int value)
       
    69   {
       
    70     __discriminator = B.b1;
       
    71     ___l1 = value;
       
    72     __uninitialized = false;
       
    73   }
       
    74 
       
    75   private void verifyl1(B discriminator)
       
    76   {
       
    77     if (discriminator != B.b1)
       
    78       throw new org.omg.CORBA.BAD_OPERATION();
       
    79   }
       
    80 
       
    81   public int l2()
       
    82   {
       
    83     if (__uninitialized)
       
    84       throw new org.omg.CORBA.BAD_OPERATION();
       
    85     verifyl2(__discriminator);
       
    86     return ___l2;
       
    87   }
       
    88 
       
    89   public void l2(int value)
       
    90   {
       
    91     __discriminator = B.b2;
       
    92     ___l2 = value;
       
    93     __uninitialized = false;
       
    94   }
       
    95 
       
    96   private void verifyl2(B discriminator)
       
    97   {
       
    98     if (discriminator != B.b2)
       
    99       throw new org.omg.CORBA.BAD_OPERATION();
       
   100   }
       
   101 
       
   102   public int l3()
       
   103   {
       
   104     if (__uninitialized)
       
   105       throw new org.omg.CORBA.BAD_OPERATION();
       
   106     verifyl3(__discriminator);
       
   107     return ___l3;
       
   108   }
       
   109 
       
   110   public void l3(int value)
       
   111   {
       
   112     __discriminator = B.b3;
       
   113     ___l3 = value;
       
   114     __uninitialized = false;
       
   115   }
       
   116 
       
   117   private void verifyl3(B discriminator)
       
   118   {
       
   119     if (discriminator != B.b3)
       
   120       throw new org.omg.CORBA.BAD_OPERATION();
       
   121   }
       
   122 } // class D_d_B