1 5 6 21 22 package org.omg.CORBA; 23 24 public class SetOverrideType implements org.omg.CORBA.portable.IDLEntity { 25 26 public static final int _SET_OVERRIDE = 0; 27 public static final SetOverrideType SET_OVERRIDE = 28 new SetOverrideType (_SET_OVERRIDE); 29 30 public static final int _ADD_OVERRIDE = 1; 31 public static final SetOverrideType ADD_OVERRIDE = 32 new SetOverrideType (_ADD_OVERRIDE); 33 34 public int value() { 35 return _value; 36 } 37 38 public static SetOverrideType from_int(int val) 39 throws org.omg.CORBA.BAD_PARAM { 40 switch (val) { 41 case _SET_OVERRIDE: 42 return SET_OVERRIDE; 43 case _ADD_OVERRIDE: 44 return ADD_OVERRIDE; 45 default: 46 throw new org.omg.CORBA.BAD_PARAM (); 47 } 48 } 49 50 protected SetOverrideType(int _value) { 51 this._value = _value; 52 } 53 54 private int _value; 55 56 } 57 | Popular Tags |