1 package com.sun.corba.se.PortableActivationIDL; 2 3 4 10 11 12 14 abstract public class ORBPortInfoListHelper 15 { 16 private static String _id = "IDL:PortableActivationIDL/ORBPortInfoList:1.0"; 17 18 public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.PortableActivationIDL.ORBPortInfo[] that) 19 { 20 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 21 a.type (type ()); 22 write (out, that); 23 a.read_value (out.create_input_stream (), type ()); 24 } 25 26 public static com.sun.corba.se.PortableActivationIDL.ORBPortInfo[] extract (org.omg.CORBA.Any a) 27 { 28 return read (a.create_input_stream ()); 29 } 30 31 private static org.omg.CORBA.TypeCode __typeCode = null; 32 synchronized public static org.omg.CORBA.TypeCode type () 33 { 34 if (__typeCode == null) 35 { 36 __typeCode = com.sun.corba.se.PortableActivationIDL.ORBPortInfoHelper.type (); 37 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); 38 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.PortableActivationIDL.ORBPortInfoListHelper.id (), "ORBPortInfoList", __typeCode); 39 } 40 return __typeCode; 41 } 42 43 public static String id () 44 { 45 return _id; 46 } 47 48 public static com.sun.corba.se.PortableActivationIDL.ORBPortInfo[] read (org.omg.CORBA.portable.InputStream istream) 49 { 50 com.sun.corba.se.PortableActivationIDL.ORBPortInfo value[] = null; 51 int _len0 = istream.read_long (); 52 value = new com.sun.corba.se.PortableActivationIDL.ORBPortInfo[_len0]; 53 for (int _o1 = 0;_o1 < value.length; ++_o1) 54 value[_o1] = com.sun.corba.se.PortableActivationIDL.ORBPortInfoHelper.read (istream); 55 return value; 56 } 57 58 public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.PortableActivationIDL.ORBPortInfo[] value) 59 { 60 ostream.write_long (value.length); 61 for (int _i0 = 0;_i0 < value.length; ++_i0) 62 com.sun.corba.se.PortableActivationIDL.ORBPortInfoHelper.write (ostream, value[_i0]); 63 } 64 65 } 66 | Popular Tags |