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