1. package org.omg.CORBA;
  2. /**
  3. * org/omg/CORBA/ParameterModeHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/CORBAX.idl
  6. * Wednesday, September 15, 2004 10:28:43 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. abstract public class ParameterModeHelper
  17. {
  18. private static String _id = "IDL:omg.org/CORBA/ParameterMode:1.0";
  19. public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.ParameterMode that)
  20. {
  21. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  22. a.type (type ());
  23. write (out, that);
  24. a.read_value (out.create_input_stream (), type ());
  25. }
  26. public static org.omg.CORBA.ParameterMode extract (org.omg.CORBA.Any a)
  27. {
  28. return read (a.create_input_stream ());
  29. }
  30. private static org.omg.CORBA.TypeCode __typeCode = null;
  31. synchronized public static org.omg.CORBA.TypeCode type ()
  32. {
  33. if (__typeCode == null)
  34. {
  35. __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.ParameterModeHelper.id (), "ParameterMode", new String[] { "PARAM_IN", "PARAM_OUT", "PARAM_INOUT"} );
  36. }
  37. return __typeCode;
  38. }
  39. public static String id ()
  40. {
  41. return _id;
  42. }
  43. public static org.omg.CORBA.ParameterMode read (org.omg.CORBA.portable.InputStream istream)
  44. {
  45. return org.omg.CORBA.ParameterMode.from_int (istream.read_long ());
  46. }
  47. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.ParameterMode value)
  48. {
  49. ostream.write_long (value.value ());
  50. }
  51. }