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