KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableServer > IdUniquenessPolicyValue


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/IdUniquenessPolicyValue.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      * IdUniquenessPolicyValue can have the following values.
14      * UNIQUE_ID - Servants activated with that POA support
15      * exactly one Object Id. MULTIPLE_ID - a servant
16      * activated with that POA may support one or more
17      * Object Ids.
18      */

19 public class IdUniquenessPolicyValue implements org.omg.CORBA.portable.IDLEntity JavaDoc
20 {
21   private int __value;
22   private static int __size = 2;
23   private static org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc[] __array = new org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc [__size];
24
25   public static final int _UNIQUE_ID = 0;
26   public static final org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc UNIQUE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc(_UNIQUE_ID);
27   public static final int _MULTIPLE_ID = 1;
28   public static final org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc MULTIPLE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue JavaDoc(_MULTIPLE_ID);
29
30   public int value ()
31   {
32     return __value;
33   }
34
35   public static org.omg.PortableServer.IdUniquenessPolicyValue 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 IdUniquenessPolicyValue (int value)
44   {
45     __value = value;
46     __array[__value] = this;
47   }
48 } // class IdUniquenessPolicyValue
49
Popular Tags