1. package org.omg.CORBA;
  2. /**
  3. * org/omg/CORBA/ParameterMode.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/CORBAX.idl
  6. * Monday, February 23, 2004 7:03:04 AM GMT
  7. */
  8. /**
  9. * Enumeration of parameter modes for Parameter. Possible vaues:
  10. * <ul>
  11. * <li>PARAM_IN - Represents an "in" parameter.</li>
  12. * <li>PARAM_OUT - Represents an "out" parameter.</li>
  13. * <li>PARAM_INOUT - Represents an "inout" parameter.</li>
  14. * </ul>
  15. */
  16. public class ParameterMode implements org.omg.CORBA.portable.IDLEntity
  17. {
  18. private int __value;
  19. private static int __size = 3;
  20. private static org.omg.CORBA.ParameterMode[] __array = new org.omg.CORBA.ParameterMode [__size];
  21. public static final int _PARAM_IN = 0;
  22. public static final org.omg.CORBA.ParameterMode PARAM_IN = new org.omg.CORBA.ParameterMode(_PARAM_IN);
  23. public static final int _PARAM_OUT = 1;
  24. public static final org.omg.CORBA.ParameterMode PARAM_OUT = new org.omg.CORBA.ParameterMode(_PARAM_OUT);
  25. public static final int _PARAM_INOUT = 2;
  26. public static final org.omg.CORBA.ParameterMode PARAM_INOUT = new org.omg.CORBA.ParameterMode(_PARAM_INOUT);
  27. public int value ()
  28. {
  29. return __value;
  30. }
  31. public static org.omg.CORBA.ParameterMode from_int (int value)
  32. {
  33. if (value >= 0 && value < __size)
  34. return __array[value];
  35. else
  36. throw new org.omg.CORBA.BAD_PARAM ();
  37. }
  38. protected ParameterMode (int value)
  39. {
  40. __value = value;
  41. __array[__value] = this;
  42. }
  43. } // class ParameterMode