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: *****/package org.omg.CORBA;
021:
022: public class DefinitionKind implements org.omg.CORBA.portable.IDLEntity {
023:
024: public static final int _dk_none = 0;
025: public static final DefinitionKind dk_none = new DefinitionKind(
026: _dk_none);
027:
028: public static final int _dk_all = 1;
029: public static final DefinitionKind dk_all = new DefinitionKind(
030: _dk_all);
031:
032: public static final int _dk_Attribute = 2;
033: public static final DefinitionKind dk_Attribute = new DefinitionKind(
034: _dk_Attribute);
035:
036: public static final int _dk_Constant = 3;
037: public static final DefinitionKind dk_Constant = new DefinitionKind(
038: _dk_Constant);
039:
040: public static final int _dk_Exception = 4;
041: public static final DefinitionKind dk_Exception = new DefinitionKind(
042: _dk_Exception);
043:
044: public static final int _dk_Interface = 5;
045: public static final DefinitionKind dk_Interface = new DefinitionKind(
046: _dk_Interface);
047:
048: public static final int _dk_Module = 6;
049: public static final DefinitionKind dk_Module = new DefinitionKind(
050: _dk_Module);
051:
052: public static final int _dk_Operation = 7;
053: public static final DefinitionKind dk_Operation = new DefinitionKind(
054: _dk_Operation);
055:
056: public static final int _dk_Typedef = 8;
057: public static final DefinitionKind dk_Typedef = new DefinitionKind(
058: _dk_Typedef);
059:
060: public static final int _dk_Alias = 9;
061: public static final DefinitionKind dk_Alias = new DefinitionKind(
062: _dk_Alias);
063:
064: public static final int _dk_Struct = 10;
065: public static final DefinitionKind dk_Struct = new DefinitionKind(
066: _dk_Struct);
067:
068: public static final int _dk_Union = 11;
069: public static final DefinitionKind dk_Union = new DefinitionKind(
070: _dk_Union);
071:
072: public static final int _dk_Enum = 12;
073: public static final DefinitionKind dk_Enum = new DefinitionKind(
074: _dk_Enum);
075:
076: public static final int _dk_Primitive = 13;
077: public static final DefinitionKind dk_Primitive = new DefinitionKind(
078: _dk_Primitive);
079:
080: public static final int _dk_String = 14;
081: public static final DefinitionKind dk_String = new DefinitionKind(
082: _dk_String);
083:
084: public static final int _dk_Sequence = 15;
085: public static final DefinitionKind dk_Sequence = new DefinitionKind(
086: _dk_Sequence);
087:
088: public static final int _dk_Array = 16;
089: public static final DefinitionKind dk_Array = new DefinitionKind(
090: _dk_Array);
091:
092: public static final int _dk_Repository = 17;
093: public static final DefinitionKind dk_Repository = new DefinitionKind(
094: _dk_Repository);
095:
096: public static final int _dk_Wstring = 18;
097: public static final DefinitionKind dk_Wstring = new DefinitionKind(
098: _dk_Wstring);
099:
100: public static final int _dk_Fixed = 19;
101: public static final DefinitionKind dk_Fixed = new DefinitionKind(
102: _dk_Fixed);
103:
104: public static final int _dk_Value = 20;
105: public static final DefinitionKind dk_Value = new DefinitionKind(
106: _dk_Value);
107:
108: public static final int _dk_ValueBox = 21;
109: public static final DefinitionKind dk_ValueBox = new DefinitionKind(
110: _dk_ValueBox);
111:
112: public static final int _dk_ValueMember = 22;
113: public static final DefinitionKind dk_ValueMember = new DefinitionKind(
114: _dk_ValueMember);
115:
116: public static final int _dk_Native = 23;
117: public static final DefinitionKind dk_Native = new DefinitionKind(
118: _dk_Native);
119:
120: public int value() {
121: throw new org.omg.CORBA.NO_IMPLEMENT();
122: }
123:
124: public static DefinitionKind from_int(int val)
125: /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */{
126: switch (val) {
127: case _dk_none:
128: return dk_none;
129: case _dk_all:
130: return dk_all;
131: case _dk_Attribute:
132: return dk_Attribute;
133: case _dk_Constant:
134: return dk_Constant;
135: case _dk_Exception:
136: return dk_Exception;
137: case _dk_Interface:
138: return dk_Interface;
139: case _dk_Module:
140: return dk_Module;
141: case _dk_Operation:
142: return dk_Operation;
143: case _dk_Typedef:
144: return dk_Typedef;
145: case _dk_Alias:
146: return dk_Alias;
147: case _dk_Struct:
148: return dk_Struct;
149: case _dk_Union:
150: return dk_Union;
151: case _dk_Enum:
152: return dk_Enum;
153: case _dk_Primitive:
154: return dk_Primitive;
155: case _dk_String:
156: return dk_String;
157: case _dk_Sequence:
158: return dk_Sequence;
159: case _dk_Array:
160: return dk_Array;
161: case _dk_Repository:
162: return dk_Repository;
163: case _dk_Wstring:
164: return dk_Wstring;
165: case _dk_Fixed:
166: return dk_Fixed;
167: case _dk_Value:
168: return dk_Value;
169: case _dk_ValueBox:
170: return dk_ValueBox;
171: case _dk_ValueMember:
172: return dk_ValueMember;
173: case _dk_Native:
174: return dk_Native;
175: default:
176: throw new org.omg.CORBA.BAD_PARAM();
177: }
178: }
179:
180: protected DefinitionKind(int _value) {
181: throw new org.omg.CORBA.NO_IMPLEMENT();
182: }
183:
184: public java.lang.Object readResolve()
185: throws java.io.ObjectStreamException {
186: return from_int(value());
187: }
188: }
|