01: package org.enhydra.shark.api.client.wfmodel;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Used to describe sets of states of various workflow objects:
07: * <p>
08: * not_running - Object is active and quiescent, but ready to execute.
09: * <p>
10: * running - The object is active and executing in the workflow.
11: */
12: public class while_openType implements Serializable {
13: private int __value;
14: private static int __size = 2;
15: private static while_openType[] __array = new while_openType[__size];
16:
17: public static final int _not_running = 0;
18: public static final while_openType not_running = new while_openType(
19: _not_running);
20: public static final int _running = 1;
21: public static final while_openType running = new while_openType(
22: _running);
23:
24: public int value() {
25: return __value;
26: }
27:
28: public static while_openType from_int(int value) {
29: if (value >= 0 && value < __size)
30: return __array[value];
31: else
32: throw new org.omg.CORBA.BAD_PARAM();
33: }
34:
35: protected while_openType(int value) {
36: __value = value;
37: __array[__value] = this ;
38: }
39: } // class while_openType
|