1. /*
  2. * @(#)BindingType.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/BindingType.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;
  17. public final class BindingType implements org.omg.CORBA.portable.IDLEntity {
  18. public static final int _nobject = 0,
  19. _ncontext = 1;
  20. public static final BindingType nobject = new BindingType(_nobject);
  21. public static final BindingType ncontext = new BindingType(_ncontext);
  22. public int value() {
  23. return _value;
  24. }
  25. public static final BindingType from_int(int i) throws org.omg.CORBA.BAD_PARAM {
  26. switch (i) {
  27. case _nobject:
  28. return nobject;
  29. case _ncontext:
  30. return ncontext;
  31. default:
  32. throw new org.omg.CORBA.BAD_PARAM();
  33. }
  34. }
  35. private BindingType(int _value){
  36. this._value = _value;
  37. }
  38. private int _value;
  39. }