1 5 6 21 22 package org.omg.CORBA; 23 24 public class OperationMode implements org.omg.CORBA.portable.IDLEntity { 25 26 public static final int _OP_NORMAL = 0; 27 public static final OperationMode OP_NORMAL = 28 new OperationMode (_OP_NORMAL); 29 30 public static final int _OP_ONEWAY = 1; 31 public static final OperationMode OP_ONEWAY = 32 new OperationMode (_OP_ONEWAY); 33 34 public int value() { 35 throw new org.omg.CORBA.NO_IMPLEMENT (); 36 } 37 38 public static OperationMode from_int(int val) 39 { 40 switch (val) { 41 case _OP_NORMAL: 42 return OP_NORMAL; 43 case _OP_ONEWAY: 44 return OP_ONEWAY; 45 default: 46 throw new org.omg.CORBA.BAD_PARAM (); 47 } 48 } 49 50 protected OperationMode(int _value) { 51 throw new org.omg.CORBA.NO_IMPLEMENT (); 52 } 53 54 public java.lang.Object readResolve() throws java.io.ObjectStreamException 55 { 56 return from_int( value() ) ; 57 } 58 59 } 60 | Popular Tags |