001    package org.omg.GIOP;
002    
003    
004    /**
005    * org/omg/GIOP/LocateStatusType_1_2Helper.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/GIOP.idl
008    * Saturday, September 22, 2012 10:56:39 AM CEST
009    */
010    
011    abstract public class LocateStatusType_1_2Helper
012    {
013      private static String  _id = "IDL:omg.org/GIOP/LocateStatusType_1_2:1.0";
014    
015      public static void insert (org.omg.CORBA.Any a, org.omg.GIOP.LocateStatusType_1_2 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.LocateStatusType_1_2 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      synchronized public static org.omg.CORBA.TypeCode type ()
030      {
031        if (__typeCode == null)
032        {
033          __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.GIOP.LocateStatusType_1_2Helper.id (), "LocateStatusType_1_2", new String[] { "UNKNOWN_OBJECT", "OBJECT_HERE", "OBJECT_FORWARD", "OBJECT_FORWARD_PERM", "LOC_SYSTEM_EXCEPTION", "LOC_NEEDS_ADDRESSING_MODE"} );
034        }
035        return __typeCode;
036      }
037    
038      public static String id ()
039      {
040        return _id;
041      }
042    
043      public static org.omg.GIOP.LocateStatusType_1_2 read (org.omg.CORBA.portable.InputStream istream)
044      {
045        return org.omg.GIOP.LocateStatusType_1_2.from_int (istream.read_long ());
046      }
047    
048      public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.GIOP.LocateStatusType_1_2 value)
049      {
050        ostream.write_long (value.value ());
051      }
052    
053    }