KickJava   Java API By Example, From Geeks To Geeks.

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


1 /***** Copyright (c) 1999-2000 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 OperationMode implements org.omg.CORBA.portable.IDLEntity JavaDoc {
25
26     public static final int _OP_NORMAL = 0;
27     public static final OperationMode JavaDoc OP_NORMAL =
28         new OperationMode JavaDoc(_OP_NORMAL);
29
30     public static final int _OP_ONEWAY = 1;
31     public static final OperationMode JavaDoc OP_ONEWAY =
32         new OperationMode JavaDoc(_OP_ONEWAY);
33
34     public int value() {
35         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
36     }
37
38     public static OperationMode JavaDoc from_int(int val)
39                        /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */ {
40     switch (val) {
41     case _OP_NORMAL:
42         return OP_NORMAL;
43     case _OP_ONEWAY:
44         return OP_ONEWAY;
45     default:
46         throw new org.omg.CORBA.BAD_PARAM JavaDoc();
47     }
48     }
49
50     protected OperationMode(int _value) {
51         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
52     }
53
54     public java.lang.Object JavaDoc readResolve() throws java.io.ObjectStreamException JavaDoc
55     {
56     return from_int( value() ) ;
57     }
58
59 }
60
Popular Tags