1 package gcc.org.omg.GIOP; 2 3 4 10 11 public class MsgType_1_1 implements org.omg.CORBA.portable.IDLEntity 12 { 13 private int __value; 14 private static int __size = 8; 15 private static gcc.org.omg.GIOP.MsgType_1_1[] __array = new gcc.org.omg.GIOP.MsgType_1_1 [__size]; 16 17 public static final int _Request = 0; 18 public static final gcc.org.omg.GIOP.MsgType_1_1 Request = new gcc.org.omg.GIOP.MsgType_1_1(_Request); 19 public static final int _Reply = 1; 20 public static final gcc.org.omg.GIOP.MsgType_1_1 Reply = new gcc.org.omg.GIOP.MsgType_1_1(_Reply); 21 public static final int _CancelRequest = 2; 22 public static final gcc.org.omg.GIOP.MsgType_1_1 CancelRequest = new gcc.org.omg.GIOP.MsgType_1_1(_CancelRequest); 23 public static final int _LocateRequest = 3; 24 public static final gcc.org.omg.GIOP.MsgType_1_1 LocateRequest = new gcc.org.omg.GIOP.MsgType_1_1(_LocateRequest); 25 public static final int _LocateReply = 4; 26 public static final gcc.org.omg.GIOP.MsgType_1_1 LocateReply = new gcc.org.omg.GIOP.MsgType_1_1(_LocateReply); 27 public static final int _CloseConnection = 5; 28 public static final gcc.org.omg.GIOP.MsgType_1_1 CloseConnection = new gcc.org.omg.GIOP.MsgType_1_1(_CloseConnection); 29 public static final int _MessageError = 6; 30 public static final gcc.org.omg.GIOP.MsgType_1_1 MessageError = new gcc.org.omg.GIOP.MsgType_1_1(_MessageError); 31 public static final int _Fragment = 7; 32 public static final gcc.org.omg.GIOP.MsgType_1_1 Fragment = new gcc.org.omg.GIOP.MsgType_1_1(_Fragment); 33 34 public int value () 35 { 36 return __value; 37 } 38 39 public static gcc.org.omg.GIOP.MsgType_1_1 from_int (int value) 40 { 41 if (value >= 0 && value < __size) 42 return __array[value]; 43 else 44 throw new org.omg.CORBA.BAD_PARAM (); 45 } 46 47 protected MsgType_1_1 (int value) 48 { 49 __value = value; 50 __array[__value] = this; 51 } 52 } | Popular Tags |