1 package org.omg.CosNaming; 2 3 4 10 11 12 16 public class BindingType implements org.omg.CORBA.portable.IDLEntity 17 { 18 private int __value; 19 private static int __size = 2; 20 private static org.omg.CosNaming.BindingType [] __array = new org.omg.CosNaming.BindingType [__size]; 21 22 public static final int _nobject = 0; 23 public static final org.omg.CosNaming.BindingType nobject = new org.omg.CosNaming.BindingType (_nobject); 24 public static final int _ncontext = 1; 25 public static final org.omg.CosNaming.BindingType ncontext = new org.omg.CosNaming.BindingType (_ncontext); 26 27 public int value () 28 { 29 return __value; 30 } 31 32 public static org.omg.CosNaming.BindingType 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 (); 38 } 39 40 protected BindingType (int value) 41 { 42 __value = value; 43 __array[__value] = this; 44 } 45 } | Popular Tags |