001    package org.omg.CSIIOP;
002    
003    
004    /**
005    * org/omg/CSIIOP/ServiceConfigurationListHelper.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/CSIIOP.idl
008    * Saturday, September 22, 2012 10:56:38 AM CEST
009    */
010    
011    abstract public class ServiceConfigurationListHelper
012    {
013      private static String  _id = "IDL:omg.org/CSIIOP/ServiceConfigurationList:1.0";
014    
015      public static void insert (org.omg.CORBA.Any a, org.omg.CSIIOP.ServiceConfiguration[] that)
016      {
017        org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
018        a.type (type ());
019        write (out, that);
020        a.read_value (out.create_input_stream (), type ());
021      }
022    
023      public static org.omg.CSIIOP.ServiceConfiguration[] extract (org.omg.CORBA.Any a)
024      {
025        return read (a.create_input_stream ());
026      }
027    
028      private static org.omg.CORBA.TypeCode __typeCode = null;
029      synchronized public static org.omg.CORBA.TypeCode type ()
030      {
031        if (__typeCode == null)
032        {
033          __typeCode = org.omg.CSIIOP.ServiceConfigurationHelper.type ();
034          __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
035          __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CSIIOP.ServiceConfigurationListHelper.id (), "ServiceConfigurationList", __typeCode);
036        }
037        return __typeCode;
038      }
039    
040      public static String id ()
041      {
042        return _id;
043      }
044    
045      public static org.omg.CSIIOP.ServiceConfiguration[] read (org.omg.CORBA.portable.InputStream istream)
046      {
047        org.omg.CSIIOP.ServiceConfiguration value[] = null;
048        int _len0 = istream.read_long ();
049        value = new org.omg.CSIIOP.ServiceConfiguration[_len0];
050        for (int _o1 = 0;_o1 < value.length; ++_o1)
051          value[_o1] = org.omg.CSIIOP.ServiceConfigurationHelper.read (istream);
052        return value;
053      }
054    
055      public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSIIOP.ServiceConfiguration[] value)
056      {
057        ostream.write_long (value.length);
058        for (int _i0 = 0;_i0 < value.length; ++_i0)
059          org.omg.CSIIOP.ServiceConfigurationHelper.write (ostream, value[_i0]);
060      }
061    
062    }