1 package org.omg.mof.Model; 2 3 4 10 11 12 public class DirectionKind implements org.omg.CORBA.portable.IDLEntity 14 { 15 private int __value; 16 private static int __size = 4; 17 private static org.omg.mof.Model.DirectionKind[] __array = new org.omg.mof.Model.DirectionKind [__size]; 18 19 public static final int _in_dir = 0; 20 public static final org.omg.mof.Model.DirectionKind in_dir = new org.omg.mof.Model.DirectionKind(_in_dir); 21 public static final int _out_dir = 1; 22 public static final org.omg.mof.Model.DirectionKind out_dir = new org.omg.mof.Model.DirectionKind(_out_dir); 23 public static final int _inout_dir = 2; 24 public static final org.omg.mof.Model.DirectionKind inout_dir = new org.omg.mof.Model.DirectionKind(_inout_dir); 25 public static final int _return_dir = 3; 26 public static final org.omg.mof.Model.DirectionKind return_dir = new org.omg.mof.Model.DirectionKind(_return_dir); 27 28 public int value () 29 { 30 return __value; 31 } 32 33 public static org.omg.mof.Model.DirectionKind from_int (int value) 34 { 35 if (value >= 0 && value < __size) 36 return __array[value]; 37 else 38 throw new org.omg.CORBA.BAD_PARAM (); 39 } 40 41 protected DirectionKind (int value) 42 { 43 __value = value; 44 __array[__value] = this; 45 } 46 } | Popular Tags |