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 package org.omg.CORBA;
7
8 public class TCKind implements org.omg.CORBA.portable.IDLEntity {
9
10 public static final int _tk_null = 0;
11 public static final TCKind tk_null = new TCKind(_tk_null);
12
13 public static final int _tk_void = 1;
14 public static final TCKind tk_void = new TCKind(_tk_void);
15
16 public static final int _tk_short = 2;
17 public static final TCKind tk_short = new TCKind(_tk_short);
18
19 public static final int _tk_long = 3;
20 public static final TCKind tk_long = new TCKind(_tk_long);
21
22 public static final int _tk_ushort = 4;
23 public static final TCKind tk_ushort = new TCKind(_tk_ushort);
24
25 public static final int _tk_ulong = 5;
26 public static final TCKind tk_ulong = new TCKind(_tk_ulong);
27
28 public static final int _tk_float = 6;
29 public static final TCKind tk_float = new TCKind(_tk_float);
30
31 public static final int _tk_double = 7;
32 public static final TCKind tk_double = new TCKind(_tk_double);
33
34 public static final int _tk_boolean = 8;
35 public static final TCKind tk_boolean = new TCKind(_tk_boolean);
36
37 public static final int _tk_char = 9;
38 public static final TCKind tk_char = new TCKind(_tk_char);
39
40 public static final int _tk_octet = 10;
41 public static final TCKind tk_octet = new TCKind(_tk_octet);
42
43 public static final int _tk_any = 11;
44 public static final TCKind tk_any = new TCKind(_tk_any);
45
46 public static final int _tk_TypeCode = 12;
47 public static final TCKind tk_TypeCode = new TCKind(_tk_TypeCode);
48
49 public static final int _tk_Principal = 13;
50 public static final TCKind tk_Principal = new TCKind(_tk_Principal);
51
52 public static final int _tk_objref= 14;
53 public static final TCKind tk_objref = new TCKind(_tk_objref);
54
55 public static final int _tk_struct = 15;
56 public static final TCKind tk_struct = new TCKind(_tk_struct);
57
58 public static final int _tk_union = 16;
59 public static final TCKind tk_union = new TCKind(_tk_union);
60
61 public static final int _tk_enum = 17;
62 public static final TCKind tk_enum = new TCKind(_tk_enum);
63
64 public static final int _tk_string = 18;
65 public static final TCKind tk_string = new TCKind(_tk_string);
66
67 public static final int _tk_sequence = 19;
68 public static final TCKind tk_sequence = new TCKind(_tk_sequence);
69
70 public static final int _tk_array = 20;
71 public static final TCKind tk_array = new TCKind(_tk_array);
72
73 public static final int _tk_alias = 21;
74 public static final TCKind tk_alias = new TCKind(_tk_alias);
75
76 public static final int _tk_except = 22;
77 public static final TCKind tk_except = new TCKind(_tk_except);
78
79 public static final int _tk_longlong = 23;
80 public static final TCKind tk_longlong = new TCKind(_tk_longlong);
81
82 public static final int _tk_ulonglong = 24;
83 public static final TCKind tk_ulonglong = new TCKind(_tk_ulonglong);
84
85 public static final int _tk_longdouble = 25;
86 public static final TCKind tk_longdouble = new TCKind(_tk_longdouble);
87
88 public static final int _tk_wchar = 26;
89 public static final TCKind tk_wchar = new TCKind(_tk_wchar);
90
91 public static final int _tk_wstring = 27;
92 public static final TCKind tk_wstring = new TCKind(_tk_wstring);
93
94 public static final int _tk_fixed = 28;
95 public static final TCKind tk_fixed = new TCKind(_tk_fixed);
96
97 public static final int _tk_value = 29;
98 public static final TCKind tk_value = new TCKind(_tk_value);
99
100 public static final int _tk_value_box = 30;
101 public static final TCKind tk_value_box = new TCKind(_tk_value_box);
102
103 public static final int _tk_native = 31;
104 public static final TCKind tk_native = new TCKind(_tk_native);
105
106 public static final int _tk_abstract_interface = 32;
107 public static final TCKind tk_abstract_interface =
108 new TCKind(_tk_abstract_interface);
109
110 public static final int _tk_local_interface = 33;
111 public static final TCKind tk_local_interface =
112 new TCKind(_tk_local_interface);
113
114 public int value() {
115 throw new org.omg.CORBA.NO_IMPLEMENT();
116 }
117
118 public static TCKind from_int(int val)
119
120 switch (val) {
121 case _tk_null:
122 return tk_null;
123 case _tk_void:
124 return tk_void;
125 case _tk_short:
126 return tk_short;
127 case _tk_long:
128 return tk_long;
129 case _tk_ushort:
130 return tk_ushort;
131 case _tk_ulong:
132 return tk_ulong;
133 case _tk_float:
134 return tk_float;
135 case _tk_double:
136 return tk_double;
137 case _tk_boolean:
138 return tk_boolean;
139 case _tk_char:
140 return tk_char;
141 case _tk_octet:
142 return tk_octet;
143 case _tk_any:
144 return tk_any;
145 case _tk_TypeCode:
146 return tk_TypeCode;
147 case _tk_Principal:
148 return tk_Principal;
149 case _tk_objref:
150 return tk_objref;
151 case _tk_struct:
152 return tk_struct;
153 case _tk_union:
154 return tk_union;
155 case _tk_enum:
156 return tk_enum;
157 case _tk_string:
158 return tk_string;
159 case _tk_sequence:
160 return tk_sequence;
161 case _tk_array:
162 return tk_array;
163 case _tk_alias:
164 return tk_alias;
165 case _tk_except:
166 return tk_except;
167 case _tk_longlong:
168 return tk_longlong;
169 case _tk_ulonglong:
170 return tk_ulonglong;
171 case _tk_longdouble:
172 return tk_longdouble;
173 case _tk_wchar:
174 return tk_wchar;
175 case _tk_wstring:
176 return tk_wstring;
177 case _tk_fixed:
178 return tk_fixed;
179 case _tk_value:
180 return tk_value;
181 case _tk_value_box:
182 return tk_value_box;
183 case _tk_native:
184 return tk_native;
185 case _tk_abstract_interface:
186 return tk_abstract_interface;
187 case _tk_local_interface:
188 return tk_local_interface;
189 default:
190 throw new org.omg.CORBA.BAD_PARAM();
191 }
192 }
193
194 protected TCKind(int _value) {
195 throw new org.omg.CORBA.NO_IMPLEMENT();
196 }
197
198 public java.lang.Object readResolve() throws java.io.ObjectStreamException
199 {
200 return from_int( value() ) ;
201 }
202 }