001    package org.omg.GIOP;
002    
003    
004    /**
005    * org/omg/GIOP/MsgType_1_1.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    public class MsgType_1_1 implements org.omg.CORBA.portable.IDLEntity
012    {
013      private        int __value;
014      private static int __size = 8;
015      private static org.omg.GIOP.MsgType_1_1[] __array = new org.omg.GIOP.MsgType_1_1 [__size];
016    
017      public static final int _Request = 0;
018      public static final org.omg.GIOP.MsgType_1_1 Request = new org.omg.GIOP.MsgType_1_1(_Request);
019      public static final int _Reply = 1;
020      public static final org.omg.GIOP.MsgType_1_1 Reply = new org.omg.GIOP.MsgType_1_1(_Reply);
021      public static final int _CancelRequest = 2;
022      public static final org.omg.GIOP.MsgType_1_1 CancelRequest = new org.omg.GIOP.MsgType_1_1(_CancelRequest);
023      public static final int _LocateRequest = 3;
024      public static final org.omg.GIOP.MsgType_1_1 LocateRequest = new org.omg.GIOP.MsgType_1_1(_LocateRequest);
025      public static final int _LocateReply = 4;
026      public static final org.omg.GIOP.MsgType_1_1 LocateReply = new org.omg.GIOP.MsgType_1_1(_LocateReply);
027      public static final int _CloseConnection = 5;
028      public static final org.omg.GIOP.MsgType_1_1 CloseConnection = new org.omg.GIOP.MsgType_1_1(_CloseConnection);
029      public static final int _MessageError = 6;
030      public static final org.omg.GIOP.MsgType_1_1 MessageError = new org.omg.GIOP.MsgType_1_1(_MessageError);
031      public static final int _Fragment = 7;
032      public static final org.omg.GIOP.MsgType_1_1 Fragment = new org.omg.GIOP.MsgType_1_1(_Fragment);
033    
034      public int value ()
035      {
036        return __value;
037      }
038    
039      public static org.omg.GIOP.MsgType_1_1 from_int (int value)
040      {
041        if (value >= 0 && value < __size)
042          return __array[value];
043        else
044          throw new org.omg.CORBA.BAD_PARAM ();
045      }
046    
047      protected MsgType_1_1 (int value)
048      {
049        __value = value;
050        __array[__value] = this;
051      }
052    } // class MsgType_1_1