KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > SetOverrideType


1 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
2        duplicate and use this code are hereby granted provided that this
3        copyright notice is included.
4 *****/

5
6 /***** This class is generated by an IDL compiler and is ORB-vendor specific.
7        A "dummy" implementation is provided so that the "official" org.omg.*
8        packages may be compiled. In order to actually use a Java ORB,
9        the ORB vendor's implementation will provide a "real"
10        implementation of the class.
11
12        In order to be conformant the class shall support the signatures
13        specified here, but will have an orb-specific implementation.
14
15        The class may support additional vendor specific functionality.
16        It shall have at least the inheritance relationships specified
17        here. Any additional (vendor specific) inheritance relationships may
18        only be with other classes and interfaces that are guaranteed to be
19        present in the JDK core.
20 *****/

21
22 package org.omg.CORBA;
23
24 public class SetOverrideType implements org.omg.CORBA.portable.IDLEntity JavaDoc {
25
26     public static final int _SET_OVERRIDE = 0;
27     public static final SetOverrideType JavaDoc SET_OVERRIDE =
28         new SetOverrideType JavaDoc(_SET_OVERRIDE);
29
30     public static final int _ADD_OVERRIDE = 1;
31     public static final SetOverrideType JavaDoc ADD_OVERRIDE =
32         new SetOverrideType JavaDoc(_ADD_OVERRIDE);
33
34     public int value() {
35         return _value;
36     }
37
38     public static SetOverrideType JavaDoc from_int(int val)
39             throws org.omg.CORBA.BAD_PARAM JavaDoc {
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 JavaDoc();
47         }
48     }
49
50     protected SetOverrideType(int _value) {
51         this._value = _value;
52     }
53
54     private int _value;
55
56 }
57
Popular Tags