1. /*
  2. * @(#)NotFoundReason.java 1.10 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. /*
  11. * File: ./org/omg/CosNaming/NamingContextPackage/NotFoundReason.java
  12. * From: nameservice.idl
  13. * Date: Tue Aug 11 03:12:09 1998
  14. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  15. */
  16. package org.omg.CosNaming.NamingContextPackage;
  17. public final class NotFoundReason implements org.omg.CORBA.portable.IDLEntity {
  18. public static final int _missing_node = 0,
  19. _not_context = 1,
  20. _not_object = 2;
  21. public static final NotFoundReason missing_node = new NotFoundReason(_missing_node);
  22. public static final NotFoundReason not_context = new NotFoundReason(_not_context);
  23. public static final NotFoundReason not_object = new NotFoundReason(_not_object);
  24. public int value() {
  25. return _value;
  26. }
  27. public static final NotFoundReason from_int(int i) throws org.omg.CORBA.BAD_PARAM {
  28. switch (i) {
  29. case _missing_node:
  30. return missing_node;
  31. case _not_context:
  32. return not_context;
  33. case _not_object:
  34. return not_object;
  35. default:
  36. throw new org.omg.CORBA.BAD_PARAM();
  37. }
  38. }
  39. private NotFoundReason(int _value){
  40. this._value = _value;
  41. }
  42. private int _value;
  43. }