001    package org.omg.GIOP;
002    
003    
004    /**
005    * org/omg/GIOP/SystemExceptionReplyBodyHelper.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/GIOP.idl
008    * Saturday, November 26, 2011 9:53:36 PM UTC
009    */
010    
011    abstract public class SystemExceptionReplyBodyHelper
012    {
013      private static String  _id = "IDL:omg.org/GIOP/SystemExceptionReplyBody:1.0";
014    
015      public static void insert (org.omg.CORBA.Any a, org.omg.GIOP.SystemExceptionReplyBody 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.GIOP.SystemExceptionReplyBody 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 [3];
044              org.omg.CORBA.TypeCode _tcOf_members0 = null;
045              _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
046              _members0[0] = new org.omg.CORBA.StructMember (
047                "exception_id",
048                _tcOf_members0,
049                null);
050              _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
051              _members0[1] = new org.omg.CORBA.StructMember (
052                "minor_code_value",
053                _tcOf_members0,
054                null);
055              _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
056              _members0[2] = new org.omg.CORBA.StructMember (
057                "completion_status",
058                _tcOf_members0,
059                null);
060              __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.GIOP.SystemExceptionReplyBodyHelper.id (), "SystemExceptionReplyBody", _members0);
061              __active = false;
062            }
063          }
064        }
065        return __typeCode;
066      }
067    
068      public static String id ()
069      {
070        return _id;
071      }
072    
073      public static org.omg.GIOP.SystemExceptionReplyBody read (org.omg.CORBA.portable.InputStream istream)
074      {
075        org.omg.GIOP.SystemExceptionReplyBody value = new org.omg.GIOP.SystemExceptionReplyBody ();
076        value.exception_id = istream.read_string ();
077        value.minor_code_value = istream.read_ulong ();
078        value.completion_status = istream.read_ulong ();
079        return value;
080      }
081    
082      public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.GIOP.SystemExceptionReplyBody value)
083      {
084        ostream.write_string (value.exception_id);
085        ostream.write_ulong (value.minor_code_value);
086        ostream.write_ulong (value.completion_status);
087      }
088    
089    }