001    package org.omg.GIOP;
002    
003    
004    /**
005    * org/omg/GIOP/LocateStatusType_1_2.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    public class LocateStatusType_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.LocateStatusType_1_2[] __array = new org.omg.GIOP.LocateStatusType_1_2 [__size];
016    
017      public static final int _UNKNOWN_OBJECT = 0;
018      public static final org.omg.GIOP.LocateStatusType_1_2 UNKNOWN_OBJECT = new org.omg.GIOP.LocateStatusType_1_2(_UNKNOWN_OBJECT);
019      public static final int _OBJECT_HERE = 1;
020      public static final org.omg.GIOP.LocateStatusType_1_2 OBJECT_HERE = new org.omg.GIOP.LocateStatusType_1_2(_OBJECT_HERE);
021      public static final int _OBJECT_FORWARD = 2;
022      public static final org.omg.GIOP.LocateStatusType_1_2 OBJECT_FORWARD = new org.omg.GIOP.LocateStatusType_1_2(_OBJECT_FORWARD);
023      public static final int _OBJECT_FORWARD_PERM = 3;
024      public static final org.omg.GIOP.LocateStatusType_1_2 OBJECT_FORWARD_PERM = new org.omg.GIOP.LocateStatusType_1_2(_OBJECT_FORWARD_PERM);
025      public static final int _LOC_SYSTEM_EXCEPTION = 4;
026      public static final org.omg.GIOP.LocateStatusType_1_2 LOC_SYSTEM_EXCEPTION = new org.omg.GIOP.LocateStatusType_1_2(_LOC_SYSTEM_EXCEPTION);
027      public static final int _LOC_NEEDS_ADDRESSING_MODE = 5;
028      public static final org.omg.GIOP.LocateStatusType_1_2 LOC_NEEDS_ADDRESSING_MODE = new org.omg.GIOP.LocateStatusType_1_2(_LOC_NEEDS_ADDRESSING_MODE);
029    
030      public int value ()
031      {
032        return __value;
033      }
034    
035      public static org.omg.GIOP.LocateStatusType_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 LocateStatusType_1_2 (int value)
044      {
045        __value = value;
046        __array[__value] = this;
047      }
048    } // class LocateStatusType_1_2