KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.api.client.wfmodel;
2
3
4 /**
5  * Used to describe sets of states of various workflow objects:
6  * <p>
7  * not_started - Provides a state after creation where the object is active
8  * and ready to be initialized and started.
9  * <p>
10  * suspended - Provides a state to temporarily pause the execution of
11  * the object. When an execution object is suspended, no
12  * execution objects depending on this object may be
13  * started.
14  */

15 public class why_not_runningType
16 {
17   private int __value;
18   private static int __size = 2;
19   private static why_not_runningType[] __array = new why_not_runningType [__size];
20
21   public static final int _not_started = 0;
22   public static final why_not_runningType not_started = new why_not_runningType(_not_started);
23   public static final int _suspended = 1;
24   public static final why_not_runningType suspended = new why_not_runningType(_suspended);
25
26   public int value ()
27   {
28     return __value;
29   }
30
31   public static why_not_runningType from_int (int value)
32   {
33     if (value >= 0 && value < __size)
34       return __array[value];
35     else
36       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
37   }
38
39   protected why_not_runningType (int value)
40   {
41     __value = value;
42     __array[__value] = this;
43   }
44 } // class why_not_runningType
45
Popular Tags