001 package org.omg.IIOP; 002 003 004 /** 005 * org/omg/IIOP/BiDirIIOPServiceContextHelper.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/IIOP.idl 008 * Saturday, November 26, 2011 9:53:36 PM UTC 009 */ 010 011 abstract public class BiDirIIOPServiceContextHelper 012 { 013 private static String _id = "IDL:omg.org/IIOP/BiDirIIOPServiceContext:1.0"; 014 015 public static void insert (org.omg.CORBA.Any a, org.omg.IIOP.BiDirIIOPServiceContext that) 016 { 017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 018 a.type (type ()); 019 write (out, that); 020 a.read_value (out.create_input_stream (), type ()); 021 } 022 023 public static org.omg.IIOP.BiDirIIOPServiceContext extract (org.omg.CORBA.Any a) 024 { 025 return read (a.create_input_stream ()); 026 } 027 028 private static org.omg.CORBA.TypeCode __typeCode = null; 029 private static boolean __active = false; 030 synchronized public static org.omg.CORBA.TypeCode type () 031 { 032 if (__typeCode == null) 033 { 034 synchronized (org.omg.CORBA.TypeCode.class) 035 { 036 if (__typeCode == null) 037 { 038 if (__active) 039 { 040 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 041 } 042 __active = true; 043 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1]; 044 org.omg.CORBA.TypeCode _tcOf_members0 = null; 045 _tcOf_members0 = org.omg.IIOP.ListenPointHelper.type (); 046 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); 047 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.IIOP.ListenPointListHelper.id (), "ListenPointList", _tcOf_members0); 048 _members0[0] = new org.omg.CORBA.StructMember ( 049 "listen_points", 050 _tcOf_members0, 051 null); 052 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.IIOP.BiDirIIOPServiceContextHelper.id (), "BiDirIIOPServiceContext", _members0); 053 __active = false; 054 } 055 } 056 } 057 return __typeCode; 058 } 059 060 public static String id () 061 { 062 return _id; 063 } 064 065 public static org.omg.IIOP.BiDirIIOPServiceContext read (org.omg.CORBA.portable.InputStream istream) 066 { 067 org.omg.IIOP.BiDirIIOPServiceContext value = new org.omg.IIOP.BiDirIIOPServiceContext (); 068 value.listen_points = org.omg.IIOP.ListenPointListHelper.read (istream); 069 return value; 070 } 071 072 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.IIOP.BiDirIIOPServiceContext value) 073 { 074 org.omg.IIOP.ListenPointListHelper.write (ostream, value.listen_points); 075 } 076 077 }