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