1 7 8 14 15 package org.omg.CORBA; 16 17 30 31 public class DefinitionKind implements org.omg.CORBA.portable.IDLEntity { 32 33 37 public static final int _dk_none = 0, 38 39 43 _dk_all = 1, 44 45 49 _dk_Attribute = 2, 50 51 55 _dk_Constant = 3, 56 57 61 62 _dk_Exception = 4, 63 64 68 69 _dk_Interface = 5, 70 71 75 76 _dk_Module = 6, 77 78 82 83 _dk_Operation = 7, 84 85 89 90 _dk_Typedef = 8, 91 92 96 97 _dk_Alias = 9, 98 99 103 104 _dk_Struct = 10, 105 106 110 111 _dk_Union = 11, 112 113 117 118 _dk_Enum = 12, 119 120 124 125 _dk_Primitive = 13, 126 127 131 132 _dk_String = 14, 133 134 138 139 _dk_Sequence = 15, 140 141 145 146 _dk_Array = 16, 147 148 152 153 _dk_Repository = 17, 154 155 159 160 _dk_Wstring = 18, 161 162 166 167 _dk_Fixed = 19, 168 169 173 174 _dk_Value = 20, 175 176 180 181 _dk_ValueBox = 21, 182 183 187 188 _dk_ValueMember = 22, 189 190 194 195 _dk_Native = 23, 196 197 201 _dk_AbstractInterface = 24; 202 203 207 208 public static final DefinitionKind dk_none = new DefinitionKind (_dk_none); 209 210 217 218 public static final DefinitionKind dk_all = new DefinitionKind (_dk_all); 219 220 224 225 public static final DefinitionKind dk_Attribute = new DefinitionKind (_dk_Attribute); 226 227 231 232 public static final DefinitionKind dk_Constant = new DefinitionKind (_dk_Constant); 233 234 235 239 240 public static final DefinitionKind dk_Exception = new DefinitionKind (_dk_Exception); 241 242 246 247 public static final DefinitionKind dk_Interface = new DefinitionKind (_dk_Interface); 248 249 253 254 public static final DefinitionKind dk_Module = new DefinitionKind (_dk_Module); 255 256 260 261 public static final DefinitionKind dk_Operation = new DefinitionKind (_dk_Operation); 262 263 267 268 public static final DefinitionKind dk_Typedef = new DefinitionKind (_dk_Typedef); 269 270 274 275 public static final DefinitionKind dk_Alias = new DefinitionKind (_dk_Alias); 276 277 281 282 public static final DefinitionKind dk_Struct = new DefinitionKind (_dk_Struct); 283 284 288 289 public static final DefinitionKind dk_Union = new DefinitionKind (_dk_Union); 290 291 295 296 public static final DefinitionKind dk_Enum = new DefinitionKind (_dk_Enum); 297 298 302 303 public static final DefinitionKind dk_Primitive = new DefinitionKind (_dk_Primitive); 304 305 309 310 public static final DefinitionKind dk_String = new DefinitionKind (_dk_String); 311 312 316 317 public static final DefinitionKind dk_Sequence = new DefinitionKind (_dk_Sequence); 318 319 323 324 public static final DefinitionKind dk_Array = new DefinitionKind (_dk_Array); 325 326 327 331 332 public static final DefinitionKind dk_Repository = new DefinitionKind (_dk_Repository); 333 334 335 339 340 public static final DefinitionKind dk_Wstring = new DefinitionKind (_dk_Wstring); 341 342 346 347 public static final DefinitionKind dk_Fixed = new DefinitionKind (_dk_Fixed); 348 349 353 354 public static final DefinitionKind dk_Value = new DefinitionKind (_dk_Value); 355 356 360 361 public static final DefinitionKind dk_ValueBox = new DefinitionKind (_dk_ValueBox); 362 363 367 368 public static final DefinitionKind dk_ValueMember = new DefinitionKind (_dk_ValueMember); 369 370 371 375 376 public static final DefinitionKind dk_Native = new DefinitionKind (_dk_Native); 377 378 379 383 public static final DefinitionKind dk_AbstractInterface = new DefinitionKind (_dk_AbstractInterface); 384 385 386 392 393 public int value() { 394 return _value; 395 } 396 397 398 410 411 public static DefinitionKind from_int(int i) { 412 switch (i) { 413 case _dk_none: 414 return dk_none; 415 case _dk_all: 416 return dk_all; 417 case _dk_Attribute: 418 return dk_Attribute; 419 case _dk_Constant: 420 return dk_Constant; 421 case _dk_Exception: 422 return dk_Exception; 423 case _dk_Interface: 424 return dk_Interface; 425 case _dk_Module: 426 return dk_Module; 427 case _dk_Operation: 428 return dk_Operation; 429 case _dk_Typedef: 430 return dk_Typedef; 431 case _dk_Alias: 432 return dk_Alias; 433 case _dk_Struct: 434 return dk_Struct; 435 case _dk_Union: 436 return dk_Union; 437 case _dk_Enum: 438 return dk_Enum; 439 case _dk_Primitive: 440 return dk_Primitive; 441 case _dk_String: 442 return dk_String; 443 case _dk_Sequence: 444 return dk_Sequence; 445 case _dk_Array: 446 return dk_Array; 447 case _dk_Repository: 448 return dk_Repository; 449 case _dk_Wstring: 450 return dk_Wstring; 451 case _dk_Fixed: 452 return dk_Fixed; 453 case _dk_Value: 454 return dk_Value; 455 case _dk_ValueBox: 456 return dk_ValueBox; 457 case _dk_ValueMember: 458 return dk_ValueMember; 459 case _dk_Native: 460 return dk_Native; 461 default: 462 throw new org.omg.CORBA.BAD_PARAM (); 463 } 464 } 465 466 472 473 protected DefinitionKind(int _value){ 474 this._value = _value; 475 } 476 477 481 482 private int _value; 483 } 484 | Popular Tags |