KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/IdAssignmentPolicyValue.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      * The IdAssignmentPolicyValue can have the following
14      * values. USER_ID - Objects created with that POA are
15      * assigned Object Ids only by the application.
16      * SYSTEM_ID - Objects created with that POA are
17      * assigned Object Ids only by the POA. If the POA also
18      * has the PERSISTENT policy, assigned Object Ids must
19      * be unique across all instantiations of the same POA.
20      */

21 public class IdAssignmentPolicyValue implements org.omg.CORBA.portable.IDLEntity JavaDoc
22 {
23   private int __value;
24   private static int __size = 2;
25   private static org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc[] __array = new org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc [__size];
26
27   public static final int _USER_ID = 0;
28   public static final org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc USER_ID = new org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc(_USER_ID);
29   public static final int _SYSTEM_ID = 1;
30   public static final org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc SYSTEM_ID = new org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc(_SYSTEM_ID);
31
32   public int value ()
33   {
34     return __value;
35   }
36
37   public static org.omg.PortableServer.IdAssignmentPolicyValue JavaDoc from_int (int value)
38   {
39     if (value >= 0 && value < __size)
40       return __array[value];
41     else
42       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
43   }
44
45   protected IdAssignmentPolicyValue (int value)
46   {
47     __value = value;
48     __array[__value] = this;
49   }
50 } // class IdAssignmentPolicyValue
51
Popular Tags