KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Model > DirectionKind


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/DirectionKind.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from mof1.idl
8 * lundi 17 mars 2003 15 h 01 CET
9 */

10
11
12 //
13
public class DirectionKind implements org.omg.CORBA.portable.IDLEntity JavaDoc
14 {
15   private int __value;
16   private static int __size = 4;
17   private static org.omg.mof.Model.DirectionKind[] __array = new org.omg.mof.Model.DirectionKind [__size];
18
19   public static final int _in_dir = 0;
20   public static final org.omg.mof.Model.DirectionKind in_dir = new org.omg.mof.Model.DirectionKind(_in_dir);
21   public static final int _out_dir = 1;
22   public static final org.omg.mof.Model.DirectionKind out_dir = new org.omg.mof.Model.DirectionKind(_out_dir);
23   public static final int _inout_dir = 2;
24   public static final org.omg.mof.Model.DirectionKind inout_dir = new org.omg.mof.Model.DirectionKind(_inout_dir);
25   public static final int _return_dir = 3;
26   public static final org.omg.mof.Model.DirectionKind return_dir = new org.omg.mof.Model.DirectionKind(_return_dir);
27
28   public int value ()
29   {
30     return __value;
31   }
32
33   public static org.omg.mof.Model.DirectionKind from_int (int value)
34   {
35     if (value >= 0 && value < __size)
36       return __array[value];
37     else
38       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
39   }
40
41   protected DirectionKind (int value)
42   {
43     __value = value;
44     __array[__value] = this;
45   }
46 } // class DirectionKind
47
Popular Tags