001 package org.omg.CosNaming; 002 003 004 /** 005 * org/omg/CosNaming/BindingType.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/CosNaming.idl 008 * Saturday, September 22, 2012 10:56:38 AM CEST 009 */ 010 011 012 /** 013 * Specifies whether the given binding is for a object (that is not a 014 * naming context) or for a naming context. 015 */ 016 public class BindingType implements org.omg.CORBA.portable.IDLEntity 017 { 018 private int __value; 019 private static int __size = 2; 020 private static org.omg.CosNaming.BindingType[] __array = new org.omg.CosNaming.BindingType [__size]; 021 022 public static final int _nobject = 0; 023 public static final org.omg.CosNaming.BindingType nobject = new org.omg.CosNaming.BindingType(_nobject); 024 public static final int _ncontext = 1; 025 public static final org.omg.CosNaming.BindingType ncontext = new org.omg.CosNaming.BindingType(_ncontext); 026 027 public int value () 028 { 029 return __value; 030 } 031 032 public static org.omg.CosNaming.BindingType from_int (int value) 033 { 034 if (value >= 0 && value < __size) 035 return __array[value]; 036 else 037 throw new org.omg.CORBA.BAD_PARAM (); 038 } 039 040 protected BindingType (int value) 041 { 042 __value = value; 043 __array[__value] = this; 044 } 045 } // class BindingType