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.idl8 * Saturday, February 9, 2008 9:40:10 AM GMT9 */10 11 12 /**13 * Indicates the reason for not able to resolve.14 */15 public class NotFoundReason implements org.omg.CORBA.portable.IDLEntity 16 {17 private int __value;18 private static int __size = 3;19 private static org.omg.CosNaming.NamingContextPackage.NotFoundReason [] __array = new org.omg.CosNaming.NamingContextPackage.NotFoundReason [__size];20 21 public static final int _missing_node = 0;22 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason missing_node = new org.omg.CosNaming.NamingContextPackage.NotFoundReason (_missing_node);23 public static final int _not_context = 1;24 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_context = new org.omg.CosNaming.NamingContextPackage.NotFoundReason (_not_context);25 public static final int _not_object = 2;26 public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_object = new org.omg.CosNaming.NamingContextPackage.NotFoundReason (_not_object);27 28 public int value ()29 {30 return __value;31 }32 33 public static org.omg.CosNaming.NamingContextPackage.NotFoundReason from_int (int value)34 {35 if (value >= 0 && value < __size)36 return __array[value];37 else38 throw new org.omg.CORBA.BAD_PARAM ();39 }40 41 protected NotFoundReason (int value)42 {43 __value = value;44 __array[__value] = this;45 }46 } // class NotFoundReason47