1 package com.sun.corba.se.PortableActivationIDL; 2 3 4 10 11 12 14 abstract public class ORBidListHelper 15 { 16 private static String _id = "IDL:PortableActivationIDL/ORBidList:1.0"; 17 18 public static void insert (org.omg.CORBA.Any a, String [] 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 String [] 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 = org.omg.CORBA.ORB.init ().create_string_tc (0); 37 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.PortableInterceptor.ORBIdHelper.id (), "ORBId", __typeCode); 38 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); 39 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.PortableActivationIDL.ORBidListHelper.id (), "ORBidList", __typeCode); 40 } 41 return __typeCode; 42 } 43 44 public static String id () 45 { 46 return _id; 47 } 48 49 public static String [] read (org.omg.CORBA.portable.InputStream istream) 50 { 51 String value[] = null; 52 int _len0 = istream.read_long (); 53 value = new String [_len0]; 54 for (int _o1 = 0;_o1 < value.length; ++_o1) 55 value[_o1] = org.omg.PortableInterceptor.ORBIdHelper.read (istream); 56 return value; 57 } 58 59 public static void write (org.omg.CORBA.portable.OutputStream ostream, String [] value) 60 { 61 ostream.write_long (value.length); 62 for (int _i0 = 0;_i0 < value.length; ++_i0) 63 org.omg.PortableInterceptor.ORBIdHelper.write (ostream, value[_i0]); 64 } 65 66 } 67 | Popular Tags |