KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CosNaming > BindingType


1 package org.omg.CosNaming;
2
3
4 /**
5 * org/omg/CosNaming/BindingType.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    * Specifies whether the given binding is for a object (that is not a
14    * naming context) or for a naming context.
15    */

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