KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.CORBA;
2
3
4 /**
5 * org/omg/CORBA/ParameterMode.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 public class ParameterMode implements org.omg.CORBA.portable.IDLEntity JavaDoc
21 {
22   private int __value;
23   private static int __size = 3;
24   private static org.omg.CORBA.ParameterMode JavaDoc[] __array = new org.omg.CORBA.ParameterMode JavaDoc [__size];
25
26   public static final int _PARAM_IN = 0;
27   public static final org.omg.CORBA.ParameterMode JavaDoc PARAM_IN = new org.omg.CORBA.ParameterMode JavaDoc(_PARAM_IN);
28   public static final int _PARAM_OUT = 1;
29   public static final org.omg.CORBA.ParameterMode JavaDoc PARAM_OUT = new org.omg.CORBA.ParameterMode JavaDoc(_PARAM_OUT);
30   public static final int _PARAM_INOUT = 2;
31   public static final org.omg.CORBA.ParameterMode JavaDoc PARAM_INOUT = new org.omg.CORBA.ParameterMode JavaDoc(_PARAM_INOUT);
32
33   public int value ()
34   {
35     return __value;
36   }
37
38   public static org.omg.CORBA.ParameterMode JavaDoc from_int (int value)
39   {
40     if (value >= 0 && value < __size)
41       return __array[value];
42     else
43       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
44   }
45
46   protected ParameterMode (int value)
47   {
48     __value = value;
49     __array[__value] = this;
50   }
51 } // class ParameterMode
52
Popular Tags