001 package org.omg.CosNaming.NamingContextPackage;
002
003
004 /**
005 * org/omg/CosNaming/NamingContextPackage/NotFoundReason.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/CosNaming.idl
008 * Saturday, November 26, 2011 9:53:36 PM UTC
009 */
010
011
012 /**
013 *
014 */
015 public class NotFoundReason implements org.omg.CORBA.portable.IDLEntity
016 {
017 private int __value;
018 private static int __size = 3;
019 private static org.omg.CosNaming.NamingContextPackage.NotFoundReason[] __array = new org.omg.CosNaming.NamingContextPackage.NotFoundReason [__size];
020
021 public static final int _missing_node = 0;
022 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason missing_node = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_missing_node);
023 public static final int _not_context = 1;
024 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_context = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_context);
025 public static final int _not_object = 2;
026 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_object = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_object);
027
028 public int value ()
029 {
030 return __value;
031 }
032
033 public static org.omg.CosNaming.NamingContextPackage.NotFoundReason from_int (int value)
034 {
035 if (value >= 0 && value < __size)
036 return __array[value];
037 else
038 throw new org.omg.CORBA.BAD_PARAM ();
039 }
040
041 protected NotFoundReason (int value)
042 {
043 __value = value;
044 __array[__value] = this;
045 }
046 } // class NotFoundReason