KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.api.client.wfmodel;
2
3 /**
4  * Used to describe sets of states of WfProcessMgr object.
5  * A WfProcessMgr can be enabled or disabled.
6  * <p>
7  * enabled - Indicates that creation of workflow processes is enabled.
8  * <p>
9  * disabled - Indicates that creation of workflow processes is disabled.
10  */

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