1 package org.omg.PortableServer; 2 3 4 10 11 12 19 public class ThreadPolicyValue implements org.omg.CORBA.portable.IDLEntity 20 { 21 private int __value; 22 private static int __size = 2; 23 private static org.omg.PortableServer.ThreadPolicyValue [] __array = new org.omg.PortableServer.ThreadPolicyValue [__size]; 24 25 public static final int _ORB_CTRL_MODEL = 0; 26 public static final org.omg.PortableServer.ThreadPolicyValue ORB_CTRL_MODEL = new org.omg.PortableServer.ThreadPolicyValue (_ORB_CTRL_MODEL); 27 public static final int _SINGLE_THREAD_MODEL = 1; 28 public static final org.omg.PortableServer.ThreadPolicyValue SINGLE_THREAD_MODEL = new org.omg.PortableServer.ThreadPolicyValue (_SINGLE_THREAD_MODEL); 29 30 public int value () 31 { 32 return __value; 33 } 34 35 public static org.omg.PortableServer.ThreadPolicyValue 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 (); 41 } 42 43 protected ThreadPolicyValue (int value) 44 { 45 __value = value; 46 __array[__value] = this; 47 } 48 } | Popular Tags |