KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > ParameterModeHelper


1 package org.omg.CORBA;
2
3
4 /**
5 * org/omg/CORBA/ParameterModeHelper.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableInterceptor/CORBAX.idl
8 * Saturday, February 9, 2008 9:40:06 AM GMT
9 */

10
11
12 /**
13    * Enumeration of parameter modes for Parameter. Possible vaues:
14    * <ul>
15    * <li>PARAM_IN - Represents an "in" parameter.</li>
16    * <li>PARAM_OUT - Represents an "out" parameter.</li>
17    * <li>PARAM_INOUT - Represents an "inout" parameter.</li>
18    * </ul>
19    */

20 abstract public class ParameterModeHelper
21 {
22   private static String JavaDoc _id = "IDL:omg.org/CORBA/ParameterMode:1.0";
23
24   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.CORBA.ParameterMode JavaDoc that)
25   {
26     org.omg.CORBA.portable.OutputStream JavaDoc out = a.create_output_stream ();
27     a.type (type ());
28     write (out, that);
29     a.read_value (out.create_input_stream (), type ());
30   }
31
32   public static org.omg.CORBA.ParameterMode JavaDoc extract (org.omg.CORBA.Any JavaDoc a)
33   {
34     return read (a.create_input_stream ());
35   }
36
37   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
38   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
39   {
40     if (__typeCode == null)
41     {
42       __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.ParameterModeHelper.id (), "ParameterMode", new String JavaDoc[] { "PARAM_IN", "PARAM_OUT", "PARAM_INOUT"} );
43     }
44     return __typeCode;
45   }
46
47   public static String JavaDoc id ()
48   {
49     return _id;
50   }
51
52   public static org.omg.CORBA.ParameterMode JavaDoc read (org.omg.CORBA.portable.InputStream JavaDoc istream)
53   {
54     return org.omg.CORBA.ParameterMode.from_int (istream.read_long ());
55   }
56
57   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.CORBA.ParameterMode JavaDoc value)
58   {
59     ostream.write_long (value.value ());
60   }
61
62 }
63
Popular Tags