1. package org.omg.CosNaming.NamingContextPackage;
  2. /**
  3. * org/omg/CosNaming/NamingContextPackage/NotFoundReason.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
  6. * Monday, February 23, 2004 7:03:07 AM GMT
  7. */
  8. /**
  9. * Indicates the reason for not able to resolve.
  10. */
  11. public class NotFoundReason implements org.omg.CORBA.portable.IDLEntity
  12. {
  13. private int __value;
  14. private static int __size = 3;
  15. private static org.omg.CosNaming.NamingContextPackage.NotFoundReason[] __array = new org.omg.CosNaming.NamingContextPackage.NotFoundReason [__size];
  16. public static final int _missing_node = 0;
  17. public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason missing_node = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_missing_node);
  18. public static final int _not_context = 1;
  19. public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_context = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_context);
  20. public static final int _not_object = 2;
  21. public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_object = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_object);
  22. public int value ()
  23. {
  24. return __value;
  25. }
  26. public static org.omg.CosNaming.NamingContextPackage.NotFoundReason from_int (int value)
  27. {
  28. if (value >= 0 && value < __size)
  29. return __array[value];
  30. else
  31. throw new org.omg.CORBA.BAD_PARAM ();
  32. }
  33. protected NotFoundReason (int value)
  34. {
  35. __value = value;
  36. __array[__value] = this;
  37. }
  38. } // class NotFoundReason