1 package org.omg.CORBA; 2 3 4 10 11 12 20 public class ParameterMode implements org.omg.CORBA.portable.IDLEntity 21 { 22 private int __value; 23 private static int __size = 3; 24 private static org.omg.CORBA.ParameterMode [] __array = new org.omg.CORBA.ParameterMode [__size]; 25 26 public static final int _PARAM_IN = 0; 27 public static final org.omg.CORBA.ParameterMode PARAM_IN = new org.omg.CORBA.ParameterMode (_PARAM_IN); 28 public static final int _PARAM_OUT = 1; 29 public static final org.omg.CORBA.ParameterMode PARAM_OUT = new org.omg.CORBA.ParameterMode (_PARAM_OUT); 30 public static final int _PARAM_INOUT = 2; 31 public static final org.omg.CORBA.ParameterMode PARAM_INOUT = new org.omg.CORBA.ParameterMode (_PARAM_INOUT); 32 33 public int value () 34 { 35 return __value; 36 } 37 38 public static org.omg.CORBA.ParameterMode from_int (int value) 39 { 40 if (value >= 0 && value < __size) 41 return __array[value]; 42 else 43 throw new org.omg.CORBA.BAD_PARAM (); 44 } 45 46 protected ParameterMode (int value) 47 { 48 __value = value; 49 __array[__value] = this; 50 } 51 } | Popular Tags |