1 5 6 21 22 package org.omg.CORBA; 23 24 public class AttributeMode implements org.omg.CORBA.portable.IDLEntity { 25 26 public static final int _ATTR_NORMAL = 0; 27 public static final AttributeMode ATTR_NORMAL = 28 new AttributeMode (_ATTR_NORMAL); 29 30 public static final int _ATTR_READONLY = 1; 31 public static final AttributeMode ATTR_READONLY = 32 new AttributeMode (_ATTR_READONLY); 33 34 public int value() { 35 throw new org.omg.CORBA.NO_IMPLEMENT (); 36 } 37 38 public static AttributeMode from_int(int val) 39 { 40 switch (val) { 41 case _ATTR_NORMAL: 42 return ATTR_NORMAL; 43 case _ATTR_READONLY: 44 return ATTR_READONLY; 45 default: 46 throw new org.omg.CORBA.BAD_PARAM (); 47 } 48 } 49 50 protected AttributeMode(int _value) { 51 throw new org.omg.CORBA.NO_IMPLEMENT (); 52 } 53 54 public java.lang.Object readResolve() throws java.io.ObjectStreamException 55 { 56 return from_int( value() ) ; 57 } 58 } 59 | Popular Tags |