KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > ORBPackage > ObjectIdListHelper


1 package org.omg.CORBA.ORBPackage;
2
3
4 public final class ObjectIdListHelper
5 {
6     private static org.omg.CORBA.TypeCode JavaDoc _type = org.omg.CORBA.ORB.init().create_alias_tc( org.omg.CORBA.ORBPackage.ObjectIdListHelper.id(), "ObjectIdList",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORBPackage.ObjectIdHelper.type() ) );
7     public static void insert (org.omg.CORBA.Any JavaDoc any, java.lang.String JavaDoc[] s)
8     {
9         any.type (type ());
10         write (any.create_output_stream (), s);
11     }
12     public static java.lang.String JavaDoc[] extract (final org.omg.CORBA.Any JavaDoc any)
13     {
14         return read (any.create_input_stream ());
15     }
16     public static org.omg.CORBA.TypeCode JavaDoc type ()
17     {
18         return _type;
19     }
20     public static String JavaDoc id()
21     {
22         return "IDL:omg.org/CORBA/ORB/ObjectIdList:1.0";
23     }
24     public static java.lang.String JavaDoc[] read (final org.omg.CORBA.portable.InputStream JavaDoc _in)
25     {
26         java.lang.String JavaDoc[] _result;
27         int _l_result0 = _in.read_long();
28         _result = new java.lang.String JavaDoc[_l_result0];
29         for(int i=0;i<_result.length;i++)
30         {
31             _result[i] = org.omg.CORBA.ORBPackage.ObjectIdHelper.read(_in);
32         }
33
34         return _result;
35     }
36     public static void write (final org.omg.CORBA.portable.OutputStream JavaDoc _out, java.lang.String JavaDoc[] _s)
37     {
38         
39         _out.write_long(_s.length);
40         for( int i=0; i<_s.length;i++)
41         {
42             org.omg.CORBA.ORBPackage.ObjectIdHelper.write(_out,_s[i]);
43         }
44
45     }
46 }
47
Popular Tags