KickJava   Java API By Example, From Geeks To Geeks.

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


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 AttributeMode implements org.omg.CORBA.portable.IDLEntity JavaDoc {
25
26     public static final int _ATTR_NORMAL = 0;
27     public static final AttributeMode JavaDoc ATTR_NORMAL =
28         new AttributeMode JavaDoc(_ATTR_NORMAL);
29
30     public static final int _ATTR_READONLY = 1;
31     public static final AttributeMode JavaDoc ATTR_READONLY =
32         new AttributeMode JavaDoc(_ATTR_READONLY);
33
34     public int value() {
35         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
36     }
37
38     public static AttributeMode JavaDoc from_int(int val)
39                        /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */ {
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 JavaDoc();
47         }
48     }
49
50     protected AttributeMode(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
Popular Tags