KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CosNaming > NamingContextPackage > NotFoundReason


1 package org.omg.CosNaming.NamingContextPackage;
2
3
4 /**
5 * org/omg/CosNaming/NamingContextPackage/NotFoundReason.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
8 * Saturday, February 9, 2008 9:40:10 AM GMT
9 */

10
11
12 /**
13          * Indicates the reason for not able to resolve.
14          */

15 public class NotFoundReason implements org.omg.CORBA.portable.IDLEntity JavaDoc
16 {
17   private int __value;
18   private static int __size = 3;
19   private static org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc[] __array = new org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc [__size];
20
21   public static final int _missing_node = 0;
22   public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc missing_node = new org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc(_missing_node);
23   public static final int _not_context = 1;
24   public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc not_context = new org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc(_not_context);
25   public static final int _not_object = 2;
26   public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc not_object = new org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc(_not_object);
27
28   public int value ()
29   {
30     return __value;
31   }
32
33   public static org.omg.CosNaming.NamingContextPackage.NotFoundReason JavaDoc from_int (int value)
34   {
35     if (value >= 0 && value < __size)
36       return __array[value];
37     else
38       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
39   }
40
41   protected NotFoundReason (int value)
42   {
43     __value = value;
44     __array[__value] = this;
45   }
46 } // class NotFoundReason
47
Popular Tags