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: *****/package org.omg.CORBA;
005:
006: public class TCKind implements org.omg.CORBA.portable.IDLEntity {
007:
008: public static final int _tk_null = 0;
009: public static final TCKind tk_null = new TCKind(_tk_null);
010:
011: public static final int _tk_void = 1;
012: public static final TCKind tk_void = new TCKind(_tk_void);
013:
014: public static final int _tk_short = 2;
015: public static final TCKind tk_short = new TCKind(_tk_short);
016:
017: public static final int _tk_long = 3;
018: public static final TCKind tk_long = new TCKind(_tk_long);
019:
020: public static final int _tk_ushort = 4;
021: public static final TCKind tk_ushort = new TCKind(_tk_ushort);
022:
023: public static final int _tk_ulong = 5;
024: public static final TCKind tk_ulong = new TCKind(_tk_ulong);
025:
026: public static final int _tk_float = 6;
027: public static final TCKind tk_float = new TCKind(_tk_float);
028:
029: public static final int _tk_double = 7;
030: public static final TCKind tk_double = new TCKind(_tk_double);
031:
032: public static final int _tk_boolean = 8;
033: public static final TCKind tk_boolean = new TCKind(_tk_boolean);
034:
035: public static final int _tk_char = 9;
036: public static final TCKind tk_char = new TCKind(_tk_char);
037:
038: public static final int _tk_octet = 10;
039: public static final TCKind tk_octet = new TCKind(_tk_octet);
040:
041: public static final int _tk_any = 11;
042: public static final TCKind tk_any = new TCKind(_tk_any);
043:
044: public static final int _tk_TypeCode = 12;
045: public static final TCKind tk_TypeCode = new TCKind(_tk_TypeCode);
046:
047: public static final int _tk_Principal = 13;
048: public static final TCKind tk_Principal = new TCKind(_tk_Principal);
049:
050: public static final int _tk_objref = 14;
051: public static final TCKind tk_objref = new TCKind(_tk_objref);
052:
053: public static final int _tk_struct = 15;
054: public static final TCKind tk_struct = new TCKind(_tk_struct);
055:
056: public static final int _tk_union = 16;
057: public static final TCKind tk_union = new TCKind(_tk_union);
058:
059: public static final int _tk_enum = 17;
060: public static final TCKind tk_enum = new TCKind(_tk_enum);
061:
062: public static final int _tk_string = 18;
063: public static final TCKind tk_string = new TCKind(_tk_string);
064:
065: public static final int _tk_sequence = 19;
066: public static final TCKind tk_sequence = new TCKind(_tk_sequence);
067:
068: public static final int _tk_array = 20;
069: public static final TCKind tk_array = new TCKind(_tk_array);
070:
071: public static final int _tk_alias = 21;
072: public static final TCKind tk_alias = new TCKind(_tk_alias);
073:
074: public static final int _tk_except = 22;
075: public static final TCKind tk_except = new TCKind(_tk_except);
076:
077: public static final int _tk_longlong = 23;
078: public static final TCKind tk_longlong = new TCKind(_tk_longlong);
079:
080: public static final int _tk_ulonglong = 24;
081: public static final TCKind tk_ulonglong = new TCKind(_tk_ulonglong);
082:
083: public static final int _tk_longdouble = 25;
084: public static final TCKind tk_longdouble = new TCKind(
085: _tk_longdouble);
086:
087: public static final int _tk_wchar = 26;
088: public static final TCKind tk_wchar = new TCKind(_tk_wchar);
089:
090: public static final int _tk_wstring = 27;
091: public static final TCKind tk_wstring = new TCKind(_tk_wstring);
092:
093: public static final int _tk_fixed = 28;
094: public static final TCKind tk_fixed = new TCKind(_tk_fixed);
095:
096: public static final int _tk_value = 29;
097: public static final TCKind tk_value = new TCKind(_tk_value);
098:
099: public static final int _tk_value_box = 30;
100: public static final TCKind tk_value_box = new TCKind(_tk_value_box);
101:
102: public static final int _tk_native = 31;
103: public static final TCKind tk_native = new TCKind(_tk_native);
104:
105: public static final int _tk_abstract_interface = 32;
106: public static final TCKind tk_abstract_interface = new TCKind(
107: _tk_abstract_interface);
108:
109: public static final int _tk_local_interface = 33;
110: public static final TCKind tk_local_interface = new TCKind(
111: _tk_local_interface);
112:
113: public int value() {
114: throw new org.omg.CORBA.NO_IMPLEMENT();
115: }
116:
117: public static TCKind from_int(int val)
118: /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */{
119: switch (val) {
120: case _tk_null:
121: return tk_null;
122: case _tk_void:
123: return tk_void;
124: case _tk_short:
125: return tk_short;
126: case _tk_long:
127: return tk_long;
128: case _tk_ushort:
129: return tk_ushort;
130: case _tk_ulong:
131: return tk_ulong;
132: case _tk_float:
133: return tk_float;
134: case _tk_double:
135: return tk_double;
136: case _tk_boolean:
137: return tk_boolean;
138: case _tk_char:
139: return tk_char;
140: case _tk_octet:
141: return tk_octet;
142: case _tk_any:
143: return tk_any;
144: case _tk_TypeCode:
145: return tk_TypeCode;
146: case _tk_Principal:
147: return tk_Principal;
148: case _tk_objref:
149: return tk_objref;
150: case _tk_struct:
151: return tk_struct;
152: case _tk_union:
153: return tk_union;
154: case _tk_enum:
155: return tk_enum;
156: case _tk_string:
157: return tk_string;
158: case _tk_sequence:
159: return tk_sequence;
160: case _tk_array:
161: return tk_array;
162: case _tk_alias:
163: return tk_alias;
164: case _tk_except:
165: return tk_except;
166: case _tk_longlong:
167: return tk_longlong;
168: case _tk_ulonglong:
169: return tk_ulonglong;
170: case _tk_longdouble:
171: return tk_longdouble;
172: case _tk_wchar:
173: return tk_wchar;
174: case _tk_wstring:
175: return tk_wstring;
176: case _tk_fixed:
177: return tk_fixed;
178: case _tk_value:
179: return tk_value;
180: case _tk_value_box:
181: return tk_value_box;
182: case _tk_native:
183: return tk_native;
184: case _tk_abstract_interface:
185: return tk_abstract_interface;
186: case _tk_local_interface:
187: return tk_local_interface;
188: default:
189: throw new org.omg.CORBA.BAD_PARAM();
190: }
191: }
192:
193: protected TCKind(int _value) {
194: throw new org.omg.CORBA.NO_IMPLEMENT();
195: }
196:
197: public java.lang.Object readResolve()
198: throws java.io.ObjectStreamException {
199: return from_int(value());
200: }
201: }
|