001    package org.omg.GIOP;
002    
003    
004    /**
005    * org/omg/GIOP/ReplyStatusType_1_2.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 ReplyStatusType_1_2 implements org.omg.CORBA.portable.IDLEntity
012    {
013      private        int __value;
014      private static int __size = 6;
015      private static org.omg.GIOP.ReplyStatusType_1_2[] __array = new org.omg.GIOP.ReplyStatusType_1_2 [__size];
016    
017      public static final int _NO_EXCEPTION = 0;
018      public static final org.omg.GIOP.ReplyStatusType_1_2 NO_EXCEPTION = new org.omg.GIOP.ReplyStatusType_1_2(_NO_EXCEPTION);
019      public static final int _USER_EXCEPTION = 1;
020      public static final org.omg.GIOP.ReplyStatusType_1_2 USER_EXCEPTION = new org.omg.GIOP.ReplyStatusType_1_2(_USER_EXCEPTION);
021      public static final int _SYSTEM_EXCEPTION = 2;
022      public static final org.omg.GIOP.ReplyStatusType_1_2 SYSTEM_EXCEPTION = new org.omg.GIOP.ReplyStatusType_1_2(_SYSTEM_EXCEPTION);
023      public static final int _LOCATION_FORWARD = 3;
024      public static final org.omg.GIOP.ReplyStatusType_1_2 LOCATION_FORWARD = new org.omg.GIOP.ReplyStatusType_1_2(_LOCATION_FORWARD);
025      public static final int _LOCATION_FORWARD_PERM = 4;
026      public static final org.omg.GIOP.ReplyStatusType_1_2 LOCATION_FORWARD_PERM = new org.omg.GIOP.ReplyStatusType_1_2(_LOCATION_FORWARD_PERM);
027      public static final int _NEEDS_ADDRESSING_MODE = 5;
028      public static final org.omg.GIOP.ReplyStatusType_1_2 NEEDS_ADDRESSING_MODE = new org.omg.GIOP.ReplyStatusType_1_2(_NEEDS_ADDRESSING_MODE);
029    
030      public int value ()
031      {
032        return __value;
033      }
034    
035      public static org.omg.GIOP.ReplyStatusType_1_2 from_int (int value)
036      {
037        if (value >= 0 && value < __size)
038          return __array[value];
039        else
040          throw new org.omg.CORBA.BAD_PARAM ();
041      }
042    
043      protected ReplyStatusType_1_2 (int value)
044      {
045        __value = value;
046        __array[__value] = this;
047      }
048    } // class ReplyStatusType_1_2