1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class TypeAliasClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.TypeAliasClassOperations, org.omg.CORBA.portable.InvokeHandler 15 { 16 17 19 private static java.util.Hashtable _methods = new java.util.Hashtable (); 20 static 21 { 22 _methods.put ("_get_all_of_type_type_alias", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_type_alias", new java.lang.Integer (1)); 24 _methods.put ("create_type_alias", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (4)); 27 _methods.put ("ref_is_instance_of", new java.lang.Integer (5)); 28 _methods.put ("ref_create_instance", new java.lang.Integer (6)); 29 _methods.put ("ref_all_objects", new java.lang.Integer (7)); 30 _methods.put ("ref_set_value", new java.lang.Integer (8)); 31 _methods.put ("ref_value", new java.lang.Integer (9)); 32 _methods.put ("ref_unset_value", new java.lang.Integer (10)); 33 _methods.put ("ref_add_value", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value_before", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value_at", new java.lang.Integer (13)); 36 _methods.put ("ref_modify_value", new java.lang.Integer (14)); 37 _methods.put ("ref_modify_value_at", new java.lang.Integer (15)); 38 _methods.put ("ref_remove_value", new java.lang.Integer (16)); 39 _methods.put ("ref_remove_value_at", new java.lang.Integer (17)); 40 _methods.put ("ref_immediate_composite", new java.lang.Integer (18)); 41 _methods.put ("ref_outermost_composite", new java.lang.Integer (19)); 42 _methods.put ("ref_invoke_operation", new java.lang.Integer (20)); 43 _methods.put ("ref_mof_id", new java.lang.Integer (21)); 44 _methods.put ("ref_meta_object", new java.lang.Integer (22)); 45 _methods.put ("ref_itself", new java.lang.Integer (23)); 46 _methods.put ("ref_immediate_package", new java.lang.Integer (24)); 47 _methods.put ("ref_outermost_package", new java.lang.Integer (25)); 48 _methods.put ("ref_delete", new java.lang.Integer (26)); 49 } 50 51 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 52 org.omg.CORBA.portable.InputStream in, 53 org.omg.CORBA.portable.ResponseHandler $rh) 54 { 55 org.omg.CORBA.portable.OutputStream out = null; 56 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 57 if (__method == null) 58 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 59 60 switch (__method.intValue ()) 61 { 62 case 0: { 64 org.omg.mof.Model.TypeAlias $result[] = null; 65 $result = this.all_of_type_type_alias (); 66 out = $rh.createReply(); 67 org.omg.mof.Model.TypeAliasSetHelper.write (out, $result); 68 break; 69 } 70 71 case 1: { 73 org.omg.mof.Model.TypeAlias $result[] = null; 74 $result = this.all_of_class_type_alias (); 75 out = $rh.createReply(); 76 org.omg.mof.Model.TypeAliasSetHelper.write (out, $result); 77 break; 78 } 79 80 case 2: { 82 try { 83 String name = in.read_string (); 84 String annotation = in.read_string (); 85 org.omg.mof.Model.TypeAlias $result = null; 86 $result = this.create_type_alias (name, annotation); 87 out = $rh.createReply(); 88 org.omg.mof.Model.TypeAliasHelper.write (out, $result); 89 } catch (org.omg.mof.Reflective.MofError $ex) { 90 out = $rh.createExceptionReply (); 91 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 92 } 93 break; 94 } 95 96 case 3: { 98 org.omg.mof.Model.TypedElement $result[] = null; 99 $result = this.all_of_type_typed_element (); 100 out = $rh.createReply(); 101 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 102 break; 103 } 104 105 case 4: { 107 org.omg.mof.Model.ModelElement $result[] = null; 108 $result = this.all_of_type_model_element (); 109 out = $rh.createReply(); 110 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 111 break; 112 } 113 114 case 5: { 116 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 117 boolean consider_subtypes = in.read_boolean (); 118 boolean $result = false; 119 $result = this.ref_is_instance_of (some_class, consider_subtypes); 120 out = $rh.createReply(); 121 out.write_boolean ($result); 122 break; 123 } 124 125 case 6: { 127 try { 128 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 129 org.omg.mof.Reflective.RefObject $result = null; 130 $result = this.ref_create_instance (args); 131 out = $rh.createReply(); 132 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 133 } catch (org.omg.mof.Reflective.MofError $ex) { 134 out = $rh.createExceptionReply (); 135 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 136 } 137 break; 138 } 139 140 case 7: { 142 boolean include_subtypes = in.read_boolean (); 143 org.omg.mof.Reflective.RefObject $result[] = null; 144 $result = this.ref_all_objects (include_subtypes); 145 out = $rh.createReply(); 146 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 147 break; 148 } 149 150 case 8: { 152 try { 153 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 154 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 155 this.ref_set_value (feature, new_value); 156 out = $rh.createReply(); 157 } catch (org.omg.mof.Reflective.MofError $ex) { 158 out = $rh.createExceptionReply (); 159 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 160 } 161 break; 162 } 163 164 case 9: { 166 try { 167 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 168 org.omg.CORBA.Any $result = null; 169 $result = this.ref_value (feature); 170 out = $rh.createReply(); 171 out.write_any ($result); 172 } catch (org.omg.mof.Reflective.NotSet $ex) { 173 out = $rh.createExceptionReply (); 174 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 175 } catch (org.omg.mof.Reflective.MofError $ex) { 176 out = $rh.createExceptionReply (); 177 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 178 } 179 break; 180 } 181 182 case 10: { 184 try { 185 this.ref_unset_value (); 186 out = $rh.createReply(); 187 } catch (org.omg.mof.Reflective.MofError $ex) { 188 out = $rh.createExceptionReply (); 189 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 190 } 191 break; 192 } 193 194 case 11: { 196 try { 197 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 198 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 199 this.ref_add_value (feature, new_element); 200 out = $rh.createReply(); 201 } catch (org.omg.mof.Reflective.MofError $ex) { 202 out = $rh.createExceptionReply (); 203 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 204 } 205 break; 206 } 207 208 case 12: { 210 try { 211 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 212 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 213 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 214 this.ref_add_value_before (feature, new_element, before_element); 215 out = $rh.createReply(); 216 } catch (org.omg.mof.Reflective.NotFound $ex) { 217 out = $rh.createExceptionReply (); 218 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 219 } catch (org.omg.mof.Reflective.MofError $ex) { 220 out = $rh.createExceptionReply (); 221 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 222 } 223 break; 224 } 225 226 case 13: { 228 try { 229 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 230 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 231 int position = in.read_ulong (); 232 this.ref_add_value_at (feature, new_element, position); 233 out = $rh.createReply(); 234 } catch (org.omg.mof.Reflective.BadPosition $ex) { 235 out = $rh.createExceptionReply (); 236 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 237 } catch (org.omg.mof.Reflective.MofError $ex) { 238 out = $rh.createExceptionReply (); 239 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 240 } 241 break; 242 } 243 244 case 14: { 246 try { 247 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 248 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 249 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 250 this.ref_modify_value (feature, old_element, new_element); 251 out = $rh.createReply(); 252 } catch (org.omg.mof.Reflective.NotFound $ex) { 253 out = $rh.createExceptionReply (); 254 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 255 } catch (org.omg.mof.Reflective.MofError $ex) { 256 out = $rh.createExceptionReply (); 257 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 258 } 259 break; 260 } 261 262 case 15: { 264 try { 265 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 266 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 267 int position = in.read_ulong (); 268 this.ref_modify_value_at (feature, new_element, position); 269 out = $rh.createReply(); 270 } catch (org.omg.mof.Reflective.BadPosition $ex) { 271 out = $rh.createExceptionReply (); 272 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 273 } catch (org.omg.mof.Reflective.MofError $ex) { 274 out = $rh.createExceptionReply (); 275 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 276 } 277 break; 278 } 279 280 case 16: { 282 try { 283 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 284 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 285 this.ref_remove_value (feature, existing_element); 286 out = $rh.createReply(); 287 } catch (org.omg.mof.Reflective.NotFound $ex) { 288 out = $rh.createExceptionReply (); 289 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 290 } catch (org.omg.mof.Reflective.MofError $ex) { 291 out = $rh.createExceptionReply (); 292 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 293 } 294 break; 295 } 296 297 case 17: { 299 try { 300 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 301 int position = in.read_ulong (); 302 this.ref_remove_value_at (feature, position); 303 out = $rh.createReply(); 304 } catch (org.omg.mof.Reflective.BadPosition $ex) { 305 out = $rh.createExceptionReply (); 306 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 307 } catch (org.omg.mof.Reflective.MofError $ex) { 308 out = $rh.createExceptionReply (); 309 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 310 } 311 break; 312 } 313 314 case 18: { 316 org.omg.mof.Reflective.RefObject $result = null; 317 $result = this.ref_immediate_composite (); 318 out = $rh.createReply(); 319 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 320 break; 321 } 322 323 case 19: { 325 org.omg.mof.Reflective.RefObject $result = null; 326 $result = this.ref_outermost_composite (); 327 out = $rh.createReply(); 328 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 329 break; 330 } 331 332 case 20: { 334 try { 335 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 336 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 337 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 338 org.omg.CORBA.Any $result = null; 339 $result = this.ref_invoke_operation (requested_operation, args); 340 out = $rh.createReply(); 341 out.write_any ($result); 342 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 343 } catch (org.omg.mof.Reflective.OtherException $ex) { 344 out = $rh.createExceptionReply (); 345 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 346 } catch (org.omg.mof.Reflective.MofError $ex) { 347 out = $rh.createExceptionReply (); 348 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 349 } 350 break; 351 } 352 353 case 21: { 355 String $result = null; 356 $result = this.ref_mof_id (); 357 out = $rh.createReply(); 358 out.write_string ($result); 359 break; 360 } 361 362 case 22: { 364 org.omg.mof.Reflective.RefObject $result = null; 365 $result = this.ref_meta_object (); 366 out = $rh.createReply(); 367 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 368 break; 369 } 370 371 case 23: { 373 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 374 boolean $result = false; 375 $result = this.ref_itself (other_object); 376 out = $rh.createReply(); 377 out.write_boolean ($result); 378 break; 379 } 380 381 case 24: { 383 org.omg.mof.Reflective._RefPackage $result = null; 384 $result = this.ref_immediate_package (); 385 out = $rh.createReply(); 386 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 387 break; 388 } 389 390 case 25: { 392 org.omg.mof.Reflective._RefPackage $result = null; 393 $result = this.ref_outermost_package (); 394 out = $rh.createReply(); 395 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 396 break; 397 } 398 399 case 26: { 401 try { 402 this.ref_delete (); 403 out = $rh.createReply(); 404 } catch (org.omg.mof.Reflective.MofError $ex) { 405 out = $rh.createExceptionReply (); 406 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 407 } 408 break; 409 } 410 411 default: 412 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 413 } 414 415 return out; 416 } 418 private static String [] __ids = { 420 "IDL:org/omg/mof/Model/TypeAliasClass:1.0", 421 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 422 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 423 "IDL:org/omg/mof/Reflective/RefObject:1.0", 424 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 425 426 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 427 { 428 return (String [])__ids.clone (); 429 } 430 431 public TypeAliasClass _this() 432 { 433 return TypeAliasClassHelper.narrow( 434 super._this_object()); 435 } 436 437 public TypeAliasClass _this(org.omg.CORBA.ORB orb) 438 { 439 return TypeAliasClassHelper.narrow( 440 super._this_object(orb)); 441 } 442 443 444 } | Popular Tags |