1 7 8 13 14 package org.omg.CORBA; 15 16 17 public abstract class ServiceDetailHelper { 18 19 public static void write(org.omg.CORBA.portable.OutputStream out, org.omg.CORBA.ServiceDetail that) { 20 out.write_ulong(that.service_detail_type); 21 { 22 out.write_long(that.service_detail.length); 23 out.write_octet_array(that.service_detail, 0, that.service_detail.length); 24 } 25 } 26 public static org.omg.CORBA.ServiceDetail read(org.omg.CORBA.portable.InputStream in) { 27 org.omg.CORBA.ServiceDetail that = new org.omg.CORBA.ServiceDetail (); 28 that.service_detail_type = in.read_ulong(); 29 { 30 int __length = in.read_long(); 31 that.service_detail = new byte[__length]; 32 in.read_octet_array(that.service_detail, 0, that.service_detail.length); 33 } 34 return that; 35 } 36 public static org.omg.CORBA.ServiceDetail extract(org.omg.CORBA.Any a) { 37 org.omg.CORBA.portable.InputStream in = a.create_input_stream(); 38 return read(in); 39 } 40 public static void insert(org.omg.CORBA.Any a, org.omg.CORBA.ServiceDetail that) { 41 org.omg.CORBA.portable.OutputStream out = a.create_output_stream(); 42 write(out, that); 43 a.read_value(out.create_input_stream(), type()); 44 } 45 private static org.omg.CORBA.TypeCode _tc; 46 synchronized public static org.omg.CORBA.TypeCode type() { 47 int _memberCount = 2; 48 org.omg.CORBA.StructMember [] _members = null; 49 if (_tc == null) { 50 _members= new org.omg.CORBA.StructMember [2]; 51 _members[0] = new org.omg.CORBA.StructMember ( 52 "service_detail_type", 53 org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong), 54 null); 55 56 _members[1] = new org.omg.CORBA.StructMember ( 57 "service_detail", 58 org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_octet)), 59 null); 60 _tc = org.omg.CORBA.ORB.init().create_struct_tc(id(), "ServiceDetail", _members); 61 } 62 return _tc; 63 } 64 public static String id() { 65 return "IDL:omg.org/CORBA/ServiceDetail:1.0"; 66 } 67 } 68 | Popular Tags |