1 7 8 package com.sun.corba.se.impl.protocol.giopmsgheaders; 9 10 11 17 18 abstract public class IORAddressingInfoHelper 19 { 20 private static String _id = "IDL:messages/IORAddressingInfo:1.0"; 21 22 public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo that) 23 { 24 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 25 a.type (type ()); 26 write (out, that); 27 a.read_value (out.create_input_stream (), type ()); 28 } 29 30 public static com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo extract (org.omg.CORBA.Any a) 31 { 32 return read (a.create_input_stream ()); 33 } 34 35 private static org.omg.CORBA.TypeCode __typeCode = null; 36 private static boolean __active = false; 37 synchronized public static org.omg.CORBA.TypeCode type () 38 { 39 if (__typeCode == null) 40 { 41 synchronized (org.omg.CORBA.TypeCode .class) 42 { 43 if (__typeCode == null) 44 { 45 if (__active) 46 { 47 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 48 } 49 __active = true; 50 org.omg.CORBA.StructMember [] _members0 = new org.omg.CORBA.StructMember [2]; 51 org.omg.CORBA.TypeCode _tcOf_members0 = null; 52 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong); 53 _members0[0] = new org.omg.CORBA.StructMember ( 54 "selected_profile_index", 55 _tcOf_members0, 56 null); 57 _tcOf_members0 = org.omg.IOP.IORHelper.type (); 58 _members0[1] = new org.omg.CORBA.StructMember ( 59 "ior", 60 _tcOf_members0, 61 null); 62 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfoHelper.id (), "IORAddressingInfo", _members0); 63 __active = false; 64 } 65 } 66 } 67 return __typeCode; 68 } 69 70 public static String id () 71 { 72 return _id; 73 } 74 75 public static com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo read (org.omg.CORBA.portable.InputStream istream) 76 { 77 com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo value = new com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo (); 78 value.selected_profile_index = istream.read_ulong (); 79 value.ior = org.omg.IOP.IORHelper.read (istream); 80 return value; 81 } 82 83 public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo value) 84 { 85 ostream.write_ulong (value.selected_profile_index); 86 org.omg.IOP.IORHelper.write (ostream, value.ior); 87 } 88 89 } 90 | Popular Tags |