KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableServer > POAManagerPackage > State


1 package org.omg.PortableServer.POAManagerPackage;
2
3
4 /**
5 * org/omg/PortableServer/POAManagerPackage/State.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
8 * Saturday, February 9, 2008 9:40:03 AM GMT
9 */

10
11
12 /**
13      * Specifies the states for the POAManager
14      */

15 public class State implements org.omg.CORBA.portable.IDLEntity JavaDoc
16 {
17   private int __value;
18   private static int __size = 4;
19   private static org.omg.PortableServer.POAManagerPackage.State JavaDoc[] __array = new org.omg.PortableServer.POAManagerPackage.State JavaDoc [__size];
20
21   public static final int _HOLDING = 0;
22   public static final org.omg.PortableServer.POAManagerPackage.State JavaDoc HOLDING = new org.omg.PortableServer.POAManagerPackage.State JavaDoc(_HOLDING);
23   public static final int _ACTIVE = 1;
24   public static final org.omg.PortableServer.POAManagerPackage.State JavaDoc ACTIVE = new org.omg.PortableServer.POAManagerPackage.State JavaDoc(_ACTIVE);
25   public static final int _DISCARDING = 2;
26   public static final org.omg.PortableServer.POAManagerPackage.State JavaDoc DISCARDING = new org.omg.PortableServer.POAManagerPackage.State JavaDoc(_DISCARDING);
27   public static final int _INACTIVE = 3;
28   public static final org.omg.PortableServer.POAManagerPackage.State JavaDoc INACTIVE = new org.omg.PortableServer.POAManagerPackage.State JavaDoc(_INACTIVE);
29
30   public int value ()
31   {
32     return __value;
33   }
34
35   public static org.omg.PortableServer.POAManagerPackage.State JavaDoc from_int (int value)
36   {
37     if (value >= 0 && value < __size)
38       return __array[value];
39     else
40       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
41   }
42
43   protected State (int value)
44   {
45     __value = value;
46     __array[__value] = this;
47   }
48 } // class State
49
Popular Tags