Logo Search packages:      
Sourcecode: mauve version File versions  Download package

F_unionHelper.java

// Tags: not-a-test
// Copyright (c) 2000, 2001 NEC Corporation.

// Adapted for Mauve by Audrius Meskauskas <audriusa@bluewin.ch>

// This file is part of Mauve.

// Mauve is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.

// Mauve is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Mauve; see the file COPYING.  If not, write to
// the Free Software Foundation, 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.

/*
This code originally came from the OMG's CORBA Open Source Testing project,
which lived at cost.omg.org. That site no longer exists.

All the contributing companies agreed to release their tests under the
terms of the GNU Lesser General Public License, available in the file
COPYING.LIB.

The code has been modified integrating into Mauve test environment and
removing tests that are not yet supported by Suns jre 1.4. Hence the license
is now GPL.

We downloaded the code from http://sourceforge.net/projects/corba-cost/,
administrated by Duncan Grisby.
*/

package gnu.testlet.org.omg.CORBA.ORB.RF11;

public abstract class F_unionHelper
{
  private static String _id = "IDL:gnu/testlet/org/omg/CORBA/ORB/RF11/F_union:1.0";

  public static void insert(org.omg.CORBA.Any a, F_union that)
  {
    org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  public static F_union extract(org.omg.CORBA.Any a)
  {
    return read(a.create_input_stream());
  }

  private static org.omg.CORBA.TypeCode __typeCode = null;

  public static synchronized org.omg.CORBA.TypeCode type()
  {
    if (__typeCode == null)
      {
        org.omg.CORBA.TypeCode _disTypeCode0;
        _disTypeCode0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long);

        org.omg.CORBA.UnionMember[] _members0 =
          new org.omg.CORBA.UnionMember[ 26 ];
        org.omg.CORBA.TypeCode _tcOf_members0;
        org.omg.CORBA.Any _anyOf_members0;

        // Branch for e_c_struct
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 1);
        _tcOf_members0 = C_structHelper.type();
        _members0 [ 0 ] =
          new org.omg.CORBA.UnionMember("e_c_struct", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_union
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 2);
        _tcOf_members0 = C_unionHelper.type();
        _members0 [ 1 ] =
          new org.omg.CORBA.UnionMember("e_c_union", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_short
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 3);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_shortHelper.id(),
                                                   "C_sequence_e_short",
                                                   _tcOf_members0
                                                  );
        _members0 [ 2 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_short",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_ushort
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 4);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ushort);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_ushortHelper.id(),
                                                   "C_sequence_e_ushort",
                                                   _tcOf_members0
                                                  );
        _members0 [ 3 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_ushort",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_long
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 5);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_longHelper.id(),
                                                   "C_sequence_e_long",
                                                   _tcOf_members0
                                                  );
        _members0 [ 4 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_long", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_ulong
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 6);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_ulongHelper.id(),
                                                   "C_sequence_e_ulong",
                                                   _tcOf_members0
                                                  );
        _members0 [ 5 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_ulong",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_float
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 7);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_float);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_floatHelper.id(),
                                                   "C_sequence_e_float",
                                                   _tcOf_members0
                                                  );
        _members0 [ 6 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_float",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_double
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 8);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_doubleHelper.id(),
                                                   "C_sequence_e_double",
                                                   _tcOf_members0
                                                  );
        _members0 [ 7 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_double",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_char
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 9);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_char);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_charHelper.id(),
                                                   "C_sequence_e_char",
                                                   _tcOf_members0
                                                  );
        _members0 [ 8 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_char", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_boolean
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 10);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_booleanHelper.id(),
                                                   "C_sequence_e_boolean",
                                                   _tcOf_members0
                                                  );
        _members0 [ 9 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_boolean",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_octet
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 11);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_octet);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_octetHelper.id(),
                                                   "C_sequence_e_octet",
                                                   _tcOf_members0
                                                  );
        _members0 [ 10 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_octet",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_any
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 12);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_any);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_anyHelper.id(),
                                                   "C_sequence_e_any",
                                                   _tcOf_members0
                                                  );
        _members0 [ 11 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_any", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_string
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 13);
        _tcOf_members0 = org.omg.CORBA.ORB.init().create_string_tc(0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_stringHelper.id(),
                                                   "C_sequence_e_string",
                                                   _tcOf_members0
                                                  );
        _members0 [ 12 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_string",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_sequence_e_Object
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 14);
        _tcOf_members0 = org.omg.CORBA.ObjectHelper.type();
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_sequence_tc(0, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_sequence_e_ObjectHelper.id(),
                                                   "C_sequence_e_Object",
                                                   _tcOf_members0
                                                  );
        _members0 [ 13 ] =
          new org.omg.CORBA.UnionMember("e_c_sequence_e_Object",
                                        _anyOf_members0, _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_short
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 17);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_shortHelper.id(),
                                                   "C_array_e_short",
                                                   _tcOf_members0
                                                  );
        _members0 [ 14 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_short", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_ushort
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 18);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ushort);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_ushortHelper.id(),
                                                   "C_array_e_ushort",
                                                   _tcOf_members0
                                                  );
        _members0 [ 15 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_ushort", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_long
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 19);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_longHelper.id(),
                                                   "C_array_e_long",
                                                   _tcOf_members0
                                                  );
        _members0 [ 16 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_long", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_ulong
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 20);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_ulongHelper.id(),
                                                   "C_array_e_ulong",
                                                   _tcOf_members0
                                                  );
        _members0 [ 17 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_ulong", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_float
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 21);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_float);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_floatHelper.id(),
                                                   "C_array_e_float",
                                                   _tcOf_members0
                                                  );
        _members0 [ 18 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_float", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_double
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 22);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_doubleHelper.id(),
                                                   "C_array_e_double",
                                                   _tcOf_members0
                                                  );
        _members0 [ 19 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_double", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_char
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 23);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_char);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_charHelper.id(),
                                                   "C_array_e_char",
                                                   _tcOf_members0
                                                  );
        _members0 [ 20 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_char", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_boolean
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 24);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_booleanHelper.id(),
                                                   "C_array_e_boolean",
                                                   _tcOf_members0
                                                  );
        _members0 [ 21 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_boolean", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_octet
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 25);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_octet);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_octetHelper.id(),
                                                   "C_array_e_octet",
                                                   _tcOf_members0
                                                  );
        _members0 [ 22 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_octet", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_any
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 26);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_any);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_anyHelper.id(),
                                                   "C_array_e_any",
                                                   _tcOf_members0
                                                  );
        _members0 [ 23 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_any", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_string
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 27);
        _tcOf_members0 = org.omg.CORBA.ORB.init().create_string_tc(0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_stringHelper.id(),
                                                   "C_array_e_string",
                                                   _tcOf_members0
                                                  );
        _members0 [ 24 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_string", _anyOf_members0,
                                        _tcOf_members0, null
                                       );

        // Branch for e_c_array_e_Object
        _anyOf_members0 = org.omg.CORBA.ORB.init().create_any();
        _anyOf_members0.insert_long((int) 28);
        _tcOf_members0 = org.omg.CORBA.ObjectHelper.type();
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_array_tc(2, _tcOf_members0);
        _tcOf_members0 =
          org.omg.CORBA.ORB.init().create_alias_tc(C_array_e_ObjectHelper.id(),
                                                   "C_array_e_Object",
                                                   _tcOf_members0
                                                  );
        _members0 [ 25 ] =
          new org.omg.CORBA.UnionMember("e_c_array_e_Object", _anyOf_members0,
                                        _tcOf_members0, null
                                       );
        __typeCode =
          org.omg.CORBA.ORB.init().create_union_tc(F_unionHelper.id(),
                                                   "F_union", _disTypeCode0,
                                                   _members0
                                                  );
      }
    return __typeCode;
  }

  public static String id()
  {
    return _id;
  }

  public static F_union read(org.omg.CORBA.portable.InputStream istream)
  {
    F_union value = new F_union();
    int _dis0 = (int) 0;
    _dis0 = istream.read_long();
    switch (_dis0)
      {
        case 1 :

          C_struct _e_c_struct = null;
          _e_c_struct = C_structHelper.read(istream);
          value.e_c_struct(_e_c_struct);
          break;

        case 2 :

          C_union _e_c_union = null;
          _e_c_union = C_unionHelper.read(istream);
          value.e_c_union(_e_c_union);
          break;

        case 3 :

          short[] _e_c_sequence_e_short = null;
          _e_c_sequence_e_short = C_sequence_e_shortHelper.read(istream);
          value.e_c_sequence_e_short(_e_c_sequence_e_short);
          break;

        case 4 :

          short[] _e_c_sequence_e_ushort = null;
          _e_c_sequence_e_ushort = C_sequence_e_ushortHelper.read(istream);
          value.e_c_sequence_e_ushort(_e_c_sequence_e_ushort);
          break;

        case 5 :

          int[] _e_c_sequence_e_long = null;
          _e_c_sequence_e_long = C_sequence_e_longHelper.read(istream);
          value.e_c_sequence_e_long(_e_c_sequence_e_long);
          break;

        case 6 :

          int[] _e_c_sequence_e_ulong = null;
          _e_c_sequence_e_ulong = C_sequence_e_ulongHelper.read(istream);
          value.e_c_sequence_e_ulong(_e_c_sequence_e_ulong);
          break;

        case 7 :

          float[] _e_c_sequence_e_float = null;
          _e_c_sequence_e_float = C_sequence_e_floatHelper.read(istream);
          value.e_c_sequence_e_float(_e_c_sequence_e_float);
          break;

        case 8 :

          double[] _e_c_sequence_e_double = null;
          _e_c_sequence_e_double = C_sequence_e_doubleHelper.read(istream);
          value.e_c_sequence_e_double(_e_c_sequence_e_double);
          break;

        case 9 :

          char[] _e_c_sequence_e_char = null;
          _e_c_sequence_e_char = C_sequence_e_charHelper.read(istream);
          value.e_c_sequence_e_char(_e_c_sequence_e_char);
          break;

        case 10 :

          boolean[] _e_c_sequence_e_boolean = null;
          _e_c_sequence_e_boolean = C_sequence_e_booleanHelper.read(istream);
          value.e_c_sequence_e_boolean(_e_c_sequence_e_boolean);
          break;

        case 11 :

          byte[] _e_c_sequence_e_octet = null;
          _e_c_sequence_e_octet = C_sequence_e_octetHelper.read(istream);
          value.e_c_sequence_e_octet(_e_c_sequence_e_octet);
          break;

        case 12 :

          org.omg.CORBA.Any[] _e_c_sequence_e_any = null;
          _e_c_sequence_e_any = C_sequence_e_anyHelper.read(istream);
          value.e_c_sequence_e_any(_e_c_sequence_e_any);
          break;

        case 13 :

          String[] _e_c_sequence_e_string = null;
          _e_c_sequence_e_string = C_sequence_e_stringHelper.read(istream);
          value.e_c_sequence_e_string(_e_c_sequence_e_string);
          break;

        case 14 :

          org.omg.CORBA.Object[] _e_c_sequence_e_Object = null;
          _e_c_sequence_e_Object = C_sequence_e_ObjectHelper.read(istream);
          value.e_c_sequence_e_Object(_e_c_sequence_e_Object);
          break;

        case 17 :

          short[] _e_c_array_e_short = null;
          _e_c_array_e_short = C_array_e_shortHelper.read(istream);
          value.e_c_array_e_short(_e_c_array_e_short);
          break;

        case 18 :

          short[] _e_c_array_e_ushort = null;
          _e_c_array_e_ushort = C_array_e_ushortHelper.read(istream);
          value.e_c_array_e_ushort(_e_c_array_e_ushort);
          break;

        case 19 :

          int[] _e_c_array_e_long = null;
          _e_c_array_e_long = C_array_e_longHelper.read(istream);
          value.e_c_array_e_long(_e_c_array_e_long);
          break;

        case 20 :

          int[] _e_c_array_e_ulong = null;
          _e_c_array_e_ulong = C_array_e_ulongHelper.read(istream);
          value.e_c_array_e_ulong(_e_c_array_e_ulong);
          break;

        case 21 :

          float[] _e_c_array_e_float = null;
          _e_c_array_e_float = C_array_e_floatHelper.read(istream);
          value.e_c_array_e_float(_e_c_array_e_float);
          break;

        case 22 :

          double[] _e_c_array_e_double = null;
          _e_c_array_e_double = C_array_e_doubleHelper.read(istream);
          value.e_c_array_e_double(_e_c_array_e_double);
          break;

        case 23 :

          char[] _e_c_array_e_char = null;
          _e_c_array_e_char = C_array_e_charHelper.read(istream);
          value.e_c_array_e_char(_e_c_array_e_char);
          break;

        case 24 :

          boolean[] _e_c_array_e_boolean = null;
          _e_c_array_e_boolean = C_array_e_booleanHelper.read(istream);
          value.e_c_array_e_boolean(_e_c_array_e_boolean);
          break;

        case 25 :

          byte[] _e_c_array_e_octet = null;
          _e_c_array_e_octet = C_array_e_octetHelper.read(istream);
          value.e_c_array_e_octet(_e_c_array_e_octet);
          break;

        case 26 :

          org.omg.CORBA.Any[] _e_c_array_e_any = null;
          _e_c_array_e_any = C_array_e_anyHelper.read(istream);
          value.e_c_array_e_any(_e_c_array_e_any);
          break;

        case 27 :

          String[] _e_c_array_e_string = null;
          _e_c_array_e_string = C_array_e_stringHelper.read(istream);
          value.e_c_array_e_string(_e_c_array_e_string);
          break;

        case 28 :

          org.omg.CORBA.Object[] _e_c_array_e_Object = null;
          _e_c_array_e_Object = C_array_e_ObjectHelper.read(istream);
          value.e_c_array_e_Object(_e_c_array_e_Object);
          break;

        default :
          throw new org.omg.CORBA.BAD_OPERATION();
      }
    return value;
  }

  public static void write(org.omg.CORBA.portable.OutputStream ostream,
                           F_union value
                          )
  {
    ostream.write_long(value.discriminator());
    switch (value.discriminator())
      {
        case 1 :
          C_structHelper.write(ostream, value.e_c_struct());
          break;

        case 2 :
          C_unionHelper.write(ostream, value.e_c_union());
          break;

        case 3 :
          C_sequence_e_shortHelper.write(ostream, value.e_c_sequence_e_short());
          break;

        case 4 :
          C_sequence_e_ushortHelper.write(ostream, value.e_c_sequence_e_ushort());
          break;

        case 5 :
          C_sequence_e_longHelper.write(ostream, value.e_c_sequence_e_long());
          break;

        case 6 :
          C_sequence_e_ulongHelper.write(ostream, value.e_c_sequence_e_ulong());
          break;

        case 7 :
          C_sequence_e_floatHelper.write(ostream, value.e_c_sequence_e_float());
          break;

        case 8 :
          C_sequence_e_doubleHelper.write(ostream, value.e_c_sequence_e_double());
          break;

        case 9 :
          C_sequence_e_charHelper.write(ostream, value.e_c_sequence_e_char());
          break;

        case 10 :
          C_sequence_e_booleanHelper.write(ostream,
                                           value.e_c_sequence_e_boolean()
                                          );
          break;

        case 11 :
          C_sequence_e_octetHelper.write(ostream, value.e_c_sequence_e_octet());
          break;

        case 12 :
          C_sequence_e_anyHelper.write(ostream, value.e_c_sequence_e_any());
          break;

        case 13 :
          C_sequence_e_stringHelper.write(ostream, value.e_c_sequence_e_string());
          break;

        case 14 :
          C_sequence_e_ObjectHelper.write(ostream, value.e_c_sequence_e_Object());
          break;

        case 17 :
          C_array_e_shortHelper.write(ostream, value.e_c_array_e_short());
          break;

        case 18 :
          C_array_e_ushortHelper.write(ostream, value.e_c_array_e_ushort());
          break;

        case 19 :
          C_array_e_longHelper.write(ostream, value.e_c_array_e_long());
          break;

        case 20 :
          C_array_e_ulongHelper.write(ostream, value.e_c_array_e_ulong());
          break;

        case 21 :
          C_array_e_floatHelper.write(ostream, value.e_c_array_e_float());
          break;

        case 22 :
          C_array_e_doubleHelper.write(ostream, value.e_c_array_e_double());
          break;

        case 23 :
          C_array_e_charHelper.write(ostream, value.e_c_array_e_char());
          break;

        case 24 :
          C_array_e_booleanHelper.write(ostream, value.e_c_array_e_boolean());
          break;

        case 25 :
          C_array_e_octetHelper.write(ostream, value.e_c_array_e_octet());
          break;

        case 26 :
          C_array_e_anyHelper.write(ostream, value.e_c_array_e_any());
          break;

        case 27 :
          C_array_e_stringHelper.write(ostream, value.e_c_array_e_string());
          break;

        case 28 :
          C_array_e_ObjectHelper.write(ostream, value.e_c_array_e_Object());
          break;

        default :
          throw new org.omg.CORBA.BAD_OPERATION();
      }
  }
}

Generated by  Doxygen 1.6.0   Back to index