KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfmodel > while_openType


1 package org.enhydra.shark.api.client.wfmodel;
2
3 /**
4  * Used to describe sets of states of various workflow objects:
5  * <p>
6  * not_running - Object is active and quiescent, but ready to execute.
7  * <p>
8  * running - The object is active and executing in the workflow.
9  */

10 public class while_openType
11 {
12    private int __value;
13    private static int __size = 2;
14    private static while_openType[] __array = new while_openType [__size];
15
16    public static final int _not_running = 0;
17    public static final while_openType not_running = new while_openType(_not_running);
18    public static final int _running = 1;
19    public static final while_openType running = new while_openType(_running);
20
21    public int value ()
22    {
23       return __value;
24    }
25
26    public static while_openType from_int (int value)
27    {
28       if (value >= 0 && value < __size)
29          return __array[value];
30       else
31          throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
32    }
33
34    protected while_openType (int value)
35    {
36       __value = value;
37       __array[__value] = this;
38    }
39 } // class while_openType
40
Popular Tags