001 /***** Copyright (c) 1999-2000 Object Management Group. Unlimited rights to 002 duplicate and use this code are hereby granted provided that this 003 copyright notice is included. 004 *****/ 005 006 /***** This class is generated by an IDL compiler and is ORB-vendor specific. 007 A "dummy" implementation is provided so that the "official" org.omg.* 008 packages may be compiled. In order to actually use a Java ORB, 009 the ORB vendor's implementation will provide a "real" 010 implementation of the class. 011 012 In order to be conformant the class shall support the signatures 013 specified here, but will have an orb-specific implementation. 014 015 The class may support additional vendor specific functionality. 016 It shall have at least the inheritance relationships specified 017 here. Any additional (vendor specific) inheritance relationships may 018 only be with other classes and interfaces that are guaranteed to be 019 present in the JDK core. 020 *****/ 021 022 package org.omg.CORBA; 023 024 public class SetOverrideType implements org.omg.CORBA.portable.IDLEntity { 025 026 public static final int _SET_OVERRIDE = 0; 027 public static final SetOverrideType SET_OVERRIDE = 028 new SetOverrideType(_SET_OVERRIDE); 029 030 public static final int _ADD = 1; 031 public static final SetOverrideType ADD = 032 new SetOverrideType(_ADD); 033 034 public int value() { 035 throw new org.omg.CORBA.NO_IMPLEMENT(); 036 } 037 038 public static SetOverrideType from_int(int val) 039 /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */ { 040 switch (val) { 041 case _SET_OVERRIDE: 042 return SET_OVERRIDE; 043 case _ADD: 044 return ADD; 045 default: 046 throw new org.omg.CORBA.BAD_PARAM(); 047 } 048 } 049 050 protected SetOverrideType(int _value) { 051 throw new org.omg.CORBA.NO_IMPLEMENT(); 052 } 053 054 public java.lang.Object readResolve() throws java.io.ObjectStreamException 055 { 056 return from_int( value() ) ; 057 } 058 }