001 package org.omg.CSIIOP; 002 003 004 /** 005 * org/omg/CSIIOP/ServiceConfigurationHelper.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/CSIIOP.idl 008 * Saturday, September 22, 2012 10:56:38 AM CEST 009 */ 010 011 abstract public class ServiceConfigurationHelper 012 { 013 private static String _id = "IDL:omg.org/CSIIOP/ServiceConfiguration:1.0"; 014 015 public static void insert (org.omg.CORBA.Any a, org.omg.CSIIOP.ServiceConfiguration 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.CSIIOP.ServiceConfiguration 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 [2]; 044 org.omg.CORBA.TypeCode _tcOf_members0 = null; 045 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong); 046 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CSIIOP.ServiceConfigurationSyntaxHelper.id (), "ServiceConfigurationSyntax", _tcOf_members0); 047 _members0[0] = new org.omg.CORBA.StructMember ( 048 "syntax", 049 _tcOf_members0, 050 null); 051 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_octet); 052 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); 053 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CSIIOP.ServiceSpecificNameHelper.id (), "ServiceSpecificName", _tcOf_members0); 054 _members0[1] = new org.omg.CORBA.StructMember ( 055 "name", 056 _tcOf_members0, 057 null); 058 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.CSIIOP.ServiceConfigurationHelper.id (), "ServiceConfiguration", _members0); 059 __active = false; 060 } 061 } 062 } 063 return __typeCode; 064 } 065 066 public static String id () 067 { 068 return _id; 069 } 070 071 public static org.omg.CSIIOP.ServiceConfiguration read (org.omg.CORBA.portable.InputStream istream) 072 { 073 org.omg.CSIIOP.ServiceConfiguration value = new org.omg.CSIIOP.ServiceConfiguration (); 074 value.syntax = istream.read_ulong (); 075 value.name = org.omg.CSIIOP.ServiceSpecificNameHelper.read (istream); 076 return value; 077 } 078 079 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSIIOP.ServiceConfiguration value) 080 { 081 ostream.write_ulong (value.syntax); 082 org.omg.CSIIOP.ServiceSpecificNameHelper.write (ostream, value.name); 083 } 084 085 }